mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-05 19:11:00 +08:00
When content localization is enabled, we show a button in the toolbar to set your post language. The current position stands out quite a lot and can get in the way on smaller screens. This PR accomplishes two things: 1. Moves the button to the toolbar, which is a more stable and less in-the-way position 2. De-prioritizes the button on new post creation when AI translations are enabled, as language is auto-detected most of the time. A new value transformer is added `"post-language-selector-priority"` to allow the AI plugin to change the priority of the button, and support for a header has been added to `toolbar-popup-menu-options` <img width="400" alt="image" src="https://github.com/user-attachments/assets/5ca7a45f-d6cc-49ac-9334-3a8613622e10" /> <img width="600" alt="image" src="https://github.com/user-attachments/assets/7393439c-3086-4fd0-bac7-74ed4a59074f" /> |
||
|---|---|---|
| .. | ||
| components | ||
| modals | ||
| pages | ||
| cdp.rb | ||