From 12cd1c271a2055d019a034976ab4b475aae21e62 Mon Sep 17 00:00:00 2001 From: James Elliott Date: Sat, 28 May 2022 16:10:49 +1000 Subject: [PATCH] i18n(web): add zh-tw support (#3445) --- .editorconfig | 4 ++++ crowdin.yml | 9 ++++++++- web/src/i18n/index.ts | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.editorconfig b/.editorconfig index 0ec049765..2766e0c39 100644 --- a/.editorconfig +++ b/.editorconfig @@ -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 diff --git a/crowdin.yml b/crowdin.yml index 6aed17ba4..aa63bedeb 100644 --- a/crowdin.yml +++ b/crowdin.yml @@ -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 ... diff --git a/web/src/i18n/index.ts b/web/src/i18n/index.ts index 0aa0c5d78..958fe2166 100644 --- a/web/src/i18n/index.ts +++ b/web/src/i18n/index.ts @@ -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: {