Skip to content

Remove country codes from i18n languages #183

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 1 commit into from
Feb 24, 2025

Conversation

cmarqu
Copy link
Contributor

@cmarqu cmarqu commented Feb 24, 2025

I removed the _COUNTRY part from the language_COUNTRY specifiers, since there are no country-specifics in the current translations I think (a friend with Mexican roots said the es_ES also fits Mexican usage).

Actually, specifying the country may even be not so well supported in Sphinx (it uses gettext which does support it, but I'm not sure why e.g. https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-language doesn't mention country codes).

See also
https://www.sphinx-doc.org/en/master/usage/advanced/intl.html#sphinx-internationalization-details

@felix-hilden
Copy link
Owner

Oh nice, thanks!

@felix-hilden felix-hilden merged commit 33c80b7 into felix-hilden:master Feb 24, 2025
4 checks passed
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.

2 participants