diff --git a/crowdin.yml b/crowdin.yml deleted file mode 100644 index edb6747f9e..0000000000 --- a/crowdin.yml +++ /dev/null @@ -1,3 +0,0 @@ -files: - - source: /locales/en-GB/*.json - translation: /locales/%locale%/%original_file_name% diff --git a/eduu/utils/localization.py b/eduu/utils/localization.py index 46da1d8189..b32917c33e 100644 --- a/eduu/utils/localization.py +++ b/eduu/utils/localization.py @@ -51,7 +51,7 @@ def cache_locales(locales: list[str]) -> dict[str, dict[str, str]]: locales_dict = {} for locale in locales: - file = Path("locales", locale, "main.json") + file = Path("locales", f"{locale}.json") if not file.exists(): logging.warning( diff --git a/locales/af-ZA/main.json b/locales/af-ZA.json similarity index 100% rename from locales/af-ZA/main.json rename to locales/af-ZA.json diff --git a/locales/ar-SA/main.json b/locales/ar-SA.json similarity index 100% rename from locales/ar-SA/main.json rename to locales/ar-SA.json diff --git a/locales/bn-BD/main.json b/locales/bn-BD.json similarity index 100% rename from locales/bn-BD/main.json rename to locales/bn-BD.json diff --git a/locales/ca-ES/main.json b/locales/ca-ES.json similarity index 100% rename from locales/ca-ES/main.json rename to locales/ca-ES.json diff --git a/locales/ckb-IR/main.json b/locales/ckb-IR.json similarity index 100% rename from locales/ckb-IR/main.json rename to locales/ckb-IR.json diff --git a/locales/cs-CZ/main.json b/locales/cs-CZ.json similarity index 100% rename from locales/cs-CZ/main.json rename to locales/cs-CZ.json diff --git a/locales/da-DK/main.json b/locales/da-DK.json similarity index 100% rename from locales/da-DK/main.json rename to locales/da-DK.json diff --git a/locales/de-DE/main.json b/locales/de-DE.json similarity index 100% rename from locales/de-DE/main.json rename to locales/de-DE.json diff --git a/locales/el-GR/main.json b/locales/el-GR.json similarity index 100% rename from locales/el-GR/main.json rename to locales/el-GR.json diff --git a/locales/en-GB/main.json b/locales/en-GB.json similarity index 100% rename from locales/en-GB/main.json rename to locales/en-GB.json diff --git a/locales/en-US/main.json b/locales/en-US.json similarity index 100% rename from locales/en-US/main.json rename to locales/en-US.json diff --git a/locales/eo-XX/main.json b/locales/eo-XX.json similarity index 100% rename from locales/eo-XX/main.json rename to locales/eo-XX.json diff --git a/locales/es-ES/main.json b/locales/es-ES.json similarity index 100% rename from locales/es-ES/main.json rename to locales/es-ES.json diff --git a/locales/fa-IR/main.json b/locales/fa-IR.json similarity index 100% rename from locales/fa-IR/main.json rename to locales/fa-IR.json diff --git a/locales/fi-FI/main.json b/locales/fi-FI.json similarity index 100% rename from locales/fi-FI/main.json rename to locales/fi-FI.json diff --git a/locales/fr-FR/main.json b/locales/fr-FR.json similarity index 100% rename from locales/fr-FR/main.json rename to locales/fr-FR.json diff --git a/locales/he-IL/main.json b/locales/he-IL.json similarity index 100% rename from locales/he-IL/main.json rename to locales/he-IL.json diff --git a/locales/hu-HU/main.json b/locales/hu-HU.json similarity index 100% rename from locales/hu-HU/main.json rename to locales/hu-HU.json diff --git a/locales/id-ID/main.json b/locales/id-ID.json similarity index 100% rename from locales/id-ID/main.json rename to locales/id-ID.json diff --git a/locales/it-IT/main.json b/locales/it-IT.json similarity index 100% rename from locales/it-IT/main.json rename to locales/it-IT.json diff --git a/locales/ja-JP/main.json b/locales/ja-JP.json similarity index 100% rename from locales/ja-JP/main.json rename to locales/ja-JP.json diff --git a/locales/ko-KR/main.json b/locales/ko-KR.json similarity index 100% rename from locales/ko-KR/main.json rename to locales/ko-KR.json diff --git a/locales/nl-NL/main.json b/locales/nl-NL.json similarity index 100% rename from locales/nl-NL/main.json rename to locales/nl-NL.json diff --git a/locales/no-NO/main.json b/locales/no-NO.json similarity index 100% rename from locales/no-NO/main.json rename to locales/no-NO.json diff --git a/locales/pl-PL/main.json b/locales/pl-PL.json similarity index 100% rename from locales/pl-PL/main.json rename to locales/pl-PL.json diff --git a/locales/pt-BR/main.json b/locales/pt-BR.json similarity index 100% rename from locales/pt-BR/main.json rename to locales/pt-BR.json diff --git a/locales/pt-BR@formal/main.json b/locales/pt-BR@formal.json similarity index 100% rename from locales/pt-BR@formal/main.json rename to locales/pt-BR@formal.json diff --git a/locales/pt-BR@informal/main.json b/locales/pt-BR@informal.json similarity index 100% rename from locales/pt-BR@informal/main.json rename to locales/pt-BR@informal.json diff --git a/locales/ro-RO/main.json b/locales/ro-RO.json similarity index 100% rename from locales/ro-RO/main.json rename to locales/ro-RO.json diff --git a/locales/ru-RU/main.json b/locales/ru-RU.json similarity index 100% rename from locales/ru-RU/main.json rename to locales/ru-RU.json diff --git a/locales/sr-SP/main.json b/locales/sr-SP.json similarity index 100% rename from locales/sr-SP/main.json rename to locales/sr-SP.json diff --git a/locales/sv-SE/main.json b/locales/sv-SE.json similarity index 100% rename from locales/sv-SE/main.json rename to locales/sv-SE.json diff --git a/locales/tr-TR/main.json b/locales/tr-TR.json similarity index 100% rename from locales/tr-TR/main.json rename to locales/tr-TR.json diff --git a/locales/uk-UA/main.json b/locales/uk-UA.json similarity index 100% rename from locales/uk-UA/main.json rename to locales/uk-UA.json diff --git a/locales/vi-VN/main.json b/locales/vi-VN.json similarity index 100% rename from locales/vi-VN/main.json rename to locales/vi-VN.json diff --git a/locales/zh-CN/main.json b/locales/zh-CN.json similarity index 100% rename from locales/zh-CN/main.json rename to locales/zh-CN.json diff --git a/locales/zh-TW/main.json b/locales/zh-TW.json similarity index 100% rename from locales/zh-TW/main.json rename to locales/zh-TW.json