diff --git a/.editorconfig b/.editorconfig index 0ec04976..2766e0c3 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 6aed17ba..aa63bede 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 0aa0c5d7..958fe216 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: {