diff options
| author | 2025-10-06 15:09:01 -0400 | |
|---|---|---|
| committer | 2025-10-06 21:09:01 +0200 | |
| commit | b6f4276c6cc2e5a53f0a4afb1536960427fa995e (patch) | |
| tree | 8ac7062239b9fa4d3cdb1a9d106db6ada1676a77 /docs/en | |
| parent | aeecba7b30cf04a53fc23f7ed7a8c5ce12cb11a6 (diff) | |
Change regional language codes (#8065)
* Change regional language codes
According to `ISO-639-1` and `ISO-3166-1 alpha-2` recommendations, regional
languages must be written with the language code in lowercase and the region
in uppercase. For instance, we should have `en-US` instead of `en-us`.
Folders have been updated to reflect those recommendations and regional
language codes have been updated in the translation files.
* Update README files
* Fix configuration for typos
* Revert language order in documentation
* Remove unnecessary code
* Change language configuration getter
* Fix phpstan error
* Fix typo
* Add types
* escape regex
* Move language logic to avoid magic or deprecated methods
* Minor fix on regex
Diffstat (limited to 'docs/en')
| -rw-r--r-- | docs/en/users/05_Configuration.md | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/docs/en/users/05_Configuration.md b/docs/en/users/05_Configuration.md index 499e770d0..65eef7dfd 100644 --- a/docs/en/users/05_Configuration.md +++ b/docs/en/users/05_Configuration.md @@ -19,8 +19,10 @@ Available languages are: | German | Deutsch | de | | Greek | Ελληνικά | el | | English | English | en | -| English (United States) | English (United States) | en-us | +| English (United States) | English (United States) | en-US | | Spanish | Español | es | +| Farsi | فارسی | fa | +| Finnish | Suomi | fi | | French | Français | fr | | Hebrew | עברית | he | | Hungarian | Magyar | hu | @@ -32,12 +34,16 @@ Available languages are: | Dutch | Nederlands | nl | | Occitan | Occitan | oc | | Polish | Polski | pl | -| Brazilian Portuguese | Português (Brasil) | pt-br | +| Brazilian Portuguese | Português (Brasil) | pt-BR | +| Portuguese | Português (Portugal) | pt-PT | | Russian | Русский | ru | | Slovak | Slovenčina | sk | | Turkish | Türkçe | tr | -| Chinese (Simplified, People’s Republic of China) | 简体中文 | zh-cn | -| Chinese (Traditional, Taiwan) | 正體中文 | zh-tw | +| Ukrainian | Українська | uk | +| Chinese (Simplified, People’s Republic of China) | 简体中文 | zh-CN | +| Chinese (Traditional, Taiwan) | 正體中文 | zh-TW | + +**Note** for regional languages, we are following the recommendations of _ISO-639-1_ and _ISO-3166-1 alpha-2_. ### Theme |
