From f4a18852983b8737368c35c9cfd3e3762b48c782 Mon Sep 17 00:00:00 2001 From: Ased Mammad Date: Thu, 7 Mar 2024 13:07:05 +0330 Subject: [PATCH] feat: Get available languages from json file --- .../components/chat/Settings/General.svelte | 7 +++--- src/lib/i18n/index.ts | 7 ++++-- .../de/{common.json => translation.json} | 0 .../common.json => en-US/translation.json} | 0 .../fa/{common.json => translation.json} | 0 .../fr/{common.json => translation.json} | 0 src/lib/i18n/locales/languages.json | 22 +++++++++++++++++++ .../{ua/common.json => uk/translation.json} | 0 8 files changed, 30 insertions(+), 6 deletions(-) rename src/lib/i18n/locales/de/{common.json => translation.json} (100%) rename src/lib/i18n/locales/{en/common.json => en-US/translation.json} (100%) rename src/lib/i18n/locales/fa/{common.json => translation.json} (100%) rename src/lib/i18n/locales/fr/{common.json => translation.json} (100%) create mode 100644 src/lib/i18n/locales/languages.json rename src/lib/i18n/locales/{ua/common.json => uk/translation.json} (100%) diff --git a/src/lib/components/chat/Settings/General.svelte b/src/lib/components/chat/Settings/General.svelte index d339e371a..0a9c88e3b 100644 --- a/src/lib/components/chat/Settings/General.svelte +++ b/src/lib/components/chat/Settings/General.svelte @@ -1,6 +1,7 @@