Skip to content

Conversation

@TerryPlaysTheDevil
Copy link

Adds _load_custom_language_codes() and _merge_custom_languages() to cps/isoLanguages.py.

The functions read a new env var:

  • CWA_CUSTOM_LANGUAGE_CODES="code:Language,code:Language,..."

They merge the custom codes into all locales defined in iso_languages_py.
If a code exists already, the existing language name is overwritten with the custom one and a warning is logged.
Malformed entries without code and/or name are skipped and log a warning too.

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