i18n(web): add zh-tw support (#3445)

This commit is contained in:
James Elliott 2022-05-28 16:10:49 +10:00 committed by GitHub
parent 3a2804928f
commit 12cd1c271a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 2 deletions

View File

@ -7,6 +7,10 @@ trim_trailing_whitespace = true
end_of_line = lf
insert_final_newline = true
[*.{yml,yaml}]
indent_style = space
indent_size = 2
[web/**]
indent_style = space

View File

@ -4,6 +4,13 @@ commit_message: "i18n: update translation for %original_file_name% (%language%)"
append_commit_message: false
files:
- source: /internal/server/locales/en/*
translation: /internal/server/locales/%two_letters_code%/%original_file_name%
translation: /internal/server/locales/%locale%/%original_file_name%
skip_untranslated_files: true
languages_mapping:
locale:
"de-DE": de
"en-EN": en
"es-ES": es
"fr-FR": fr
"ru-RU": ru
...

View File

@ -24,7 +24,7 @@ i18n.use(Backend)
default: ["en"],
},
load: "all",
supportedLngs: ["en", "de", "es", "fr", "ru", "sv"],
supportedLngs: ["en", "de", "es", "fr", "ru", "sv", "zh-TW"],
lowerCaseLng: false,
nonExplicitSupportedLngs: true,
interpolation: {