Skip to content

DEV: Update allowed supported locales in translation editor #32920

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 26, 2025

Conversation

keegangeorge
Copy link
Member

@keegangeorge keegangeorge commented May 26, 2025

🔍 Overview

This update adds a new site setting:

SiteSetting.experimental_content_localization_supported_locales

where admins can set the supported languages for content localizations, which will populate the picker inside the translation composer editor. The update also ensures the content localization settings are shown in the site setting area: "localization"

📷 Screenshots

Screenshot 2025-05-26 at 10 03 14

Screenshot 2025-05-26 at 10 04 08

@github-actions github-actions bot added the i18n PRs which update English locale files or i18n related code label May 26, 2025
@keegangeorge keegangeorge merged commit adc8dd2 into main May 26, 2025
17 checks passed
@keegangeorge keegangeorge deleted the content-supported-lang branch May 26, 2025 18:40
nattsw added a commit to discourse/discourse-translator that referenced this pull request May 29, 2025
The anon language switcher feature is moving to core, so we are removing it from this plugin.

Similarly, in discourse/discourse#32920, we introduced `experimental_content_localization_supported_locales`, but there was a borked migration that copies `automatic_translation_target_languages` (from this plugin) to `experimental_content_localization_supported_locales` (core) - the migration was a no-op. Language switcher relies on old setting, so it was good it was borked. This PR also adds a migration to do a rename as the old setting will not be used any more.

/t/154911
nattsw added a commit that referenced this pull request May 29, 2025
Related: 
- discourse/discourse-translator#308
- #32920 (setting introduced)

Moving the switcher to core, as the setting is now in core.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
i18n PRs which update English locale files or i18n related code
Development

Successfully merging this pull request may close these issues.

4 participants