i18n(web): add zh-tw support (#3445)
parent
3a2804928f
commit
12cd1c271a
|
@ -7,6 +7,10 @@ trim_trailing_whitespace = true
|
||||||
end_of_line = lf
|
end_of_line = lf
|
||||||
insert_final_newline = true
|
insert_final_newline = true
|
||||||
|
|
||||||
|
[*.{yml,yaml}]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
|
||||||
[web/**]
|
[web/**]
|
||||||
indent_style = space
|
indent_style = space
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,13 @@ commit_message: "i18n: update translation for %original_file_name% (%language%)"
|
||||||
append_commit_message: false
|
append_commit_message: false
|
||||||
files:
|
files:
|
||||||
- source: /internal/server/locales/en/*
|
- 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
|
skip_untranslated_files: true
|
||||||
|
languages_mapping:
|
||||||
|
locale:
|
||||||
|
"de-DE": de
|
||||||
|
"en-EN": en
|
||||||
|
"es-ES": es
|
||||||
|
"fr-FR": fr
|
||||||
|
"ru-RU": ru
|
||||||
...
|
...
|
||||||
|
|
|
@ -24,7 +24,7 @@ i18n.use(Backend)
|
||||||
default: ["en"],
|
default: ["en"],
|
||||||
},
|
},
|
||||||
load: "all",
|
load: "all",
|
||||||
supportedLngs: ["en", "de", "es", "fr", "ru", "sv"],
|
supportedLngs: ["en", "de", "es", "fr", "ru", "sv", "zh-TW"],
|
||||||
lowerCaseLng: false,
|
lowerCaseLng: false,
|
||||||
nonExplicitSupportedLngs: true,
|
nonExplicitSupportedLngs: true,
|
||||||
interpolation: {
|
interpolation: {
|
||||||
|
|
Loading…
Reference in New Issue