From 4df8db3f5429c481bbc6e127683c8ff366c60449 Mon Sep 17 00:00:00 2001 From: DevMirza <53424436+Zaid-maker@users.noreply.github.com> Date: Thu, 16 Feb 2023 19:12:18 +0500 Subject: [PATCH 1/2] Add new Language: Urdu --- src/i18n.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/i18n.js b/src/i18n.js index c0c07797..ffbf78f6 100644 --- a/src/i18n.js +++ b/src/i18n.js @@ -40,6 +40,7 @@ const languageList = { "el-GR": "Ελληνικά", "yue": "繁體中文 (廣東話 / 粵語)", "ro": "Limba română", + "ur": "Urdu" }; let messages = { From bd2c1d9c3416ce8a6f9706b2a224e317a1dc7f28 Mon Sep 17 00:00:00 2001 From: DevMirza <53424436+Zaid-maker@users.noreply.github.com> Date: Fri, 17 Feb 2023 15:43:49 +0500 Subject: [PATCH 2/2] Add Urdu to right to left language array <3 --- src/i18n.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/i18n.js b/src/i18n.js index ffbf78f6..2fbbfccc 100644 --- a/src/i18n.js +++ b/src/i18n.js @@ -53,7 +53,7 @@ for (let lang in languageList) { }; } -const rtlLangs = [ "fa", "ar-SY" ]; +const rtlLangs = [ "fa", "ar-SY", "ur" ]; export const currentLocale = () => localStorage.locale || languageList[navigator.language] && navigator.language