Skip to content

Remove the country code in the translation files and add Spanish translation - #35

Closed
SosthenG wants to merge 2 commits into
mainfrom
sosthen_30281_locale_without_country
Closed

Remove the country code in the translation files and add Spanish translation#35
SosthenG wants to merge 2 commits into
mainfrom
sosthen_30281_locale_without_country

Conversation

@SosthenG

Copy link
Copy Markdown

What

  • Renamed assoconnect_smtp_toolbox+intl-icu.en_US.yml → assoconnect_smtp_toolbox+intl-icu.en.yml and assoconnect_smtp_toolbox+intl-icu.fr_FR.yml → assoconnect_smtp_toolbox+intl-icu.fr.yml.
  • Added assoconnect_smtp_toolbox+intl-icu.es.yml (Spanish translation of the same keys).

Why

Translation resource files were named after a specific country variant (en_US, fr_FR) instead of the base language. Symfony's translator resolves a requested locale by progressively falling back to its parent (e.g. en_GB → en, fr_CA → fr), so naming the files after the base language lets them serve any regional variant of that language, not just the one hardcoded in the filename. It also matches the convention for the new Spanish file, which isn't tied to a specific country either.

@sonarqubecloud

Copy link
Copy Markdown

❌ The last analysis has failed.

See analysis details on SonarQube Cloud

1 similar comment
@sonarqubecloud

Copy link
Copy Markdown

❌ The last analysis has failed.

See analysis details on SonarQube Cloud

@SosthenG

Copy link
Copy Markdown
Author

Done by @fguimier in #36 & #37

@SosthenG SosthenG closed this Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant