aboutsummaryrefslogtreecommitdiff
path: root/.typos.toml
diff options
context:
space:
mode:
authorGravatar Alexis Degrugillier <aledeg@users.noreply.github.com> 2025-10-06 15:09:01 -0400
committerGravatar GitHub <noreply@github.com> 2025-10-06 21:09:01 +0200
commitb6f4276c6cc2e5a53f0a4afb1536960427fa995e (patch)
tree8ac7062239b9fa4d3cdb1a9d106db6ada1676a77 /.typos.toml
parentaeecba7b30cf04a53fc23f7ed7a8c5ce12cb11a6 (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 '.typos.toml')
-rw-r--r--.typos.toml9
1 files changed, 5 insertions, 4 deletions
diff --git a/.typos.toml b/.typos.toml
index b650ed722..6d5f5db86 100644
--- a/.typos.toml
+++ b/.typos.toml
@@ -32,13 +32,14 @@ extend-exclude = [
"app/i18n/nl/",
"app/i18n/oc/",
"app/i18n/pl/",
- "app/i18n/pt-br/",
- "app/i18n/pt-pt/",
+ "app/i18n/pt-BR/",
+ "app/i18n/pt-PT/",
"app/i18n/ru/",
"app/i18n/sk/",
"app/i18n/tr/",
- "app/i18n/zh-cn/",
- "app/i18n/zh-tw/",
+ "app/i18n/uk/",
+ "app/i18n/zh-CN/",
+ "app/i18n/zh-TW/",
"bin/",
"composer.lock",
"data/",