From 3c33be718427ad95ad3afdc989c7778871a42b4f Mon Sep 17 00:00:00 2001 From: DevMirza <53424436+Zaid-maker@users.noreply.github.com> Date: Fri, 22 Sep 2023 23:49:37 +0500 Subject: [PATCH 1/3] Create ur.json --- src/node/i18n/locales/ur.json | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/node/i18n/locales/ur.json diff --git a/src/node/i18n/locales/ur.json b/src/node/i18n/locales/ur.json new file mode 100644 index 000000000000..1553fa969c42 --- /dev/null +++ b/src/node/i18n/locales/ur.json @@ -0,0 +1,13 @@ +{ + "LOGIN_TITLE": "{{app}} لاگ ان کریں", + "LOGIN_BELOW": "براہ کرم نیچے لاگ ان کریں۔", + "WELCOME": "میں خوش آمدید {{app}}", + "LOGIN_PASSWORD": "پاس ورڈ کے لیے {{configFile}} پر کنفگ فائل چیک کریں۔", + "LOGIN_USING_ENV_PASSWORD": "پاس ورڈ $PASSWORD سے سیٹ کیا گیا تھا۔", + "LOGIN_USING_HASHED_PASSWORD": "پاس ورڈ $HASHED_PASSWORD سے سیٹ کیا گیا تھا۔", + "SUBMIT": "جمع کرائیں", + "PASSWORD_PLACEHOLDER": "پاس ورڈ", + "LOGIN_RATE_LIMIT": "لاگ ان کی شرح محدود!", + "MISS_PASSWORD": "پاس ورڈ غائب ہے۔", + "INCORRECT_PASSWORD": "غلط پاس ورڈ" +} From a895812375246a45dad3e36384b7977362da8e17 Mon Sep 17 00:00:00 2001 From: DevMirza <53424436+Zaid-maker@users.noreply.github.com> Date: Fri, 22 Sep 2023 23:52:37 +0500 Subject: [PATCH 2/3] Update index.ts --- src/node/i18n/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/node/i18n/index.ts b/src/node/i18n/index.ts index 11c3d93198f2..57e68fcbfccc 100644 --- a/src/node/i18n/index.ts +++ b/src/node/i18n/index.ts @@ -3,6 +3,8 @@ import * as en from "./locales/en.json" import * as ja from "./locales/ja.json" import * as th from "./locales/th.json" import * as zhCn from "./locales/zh-cn.json" +import * as ur from "./locales/ur.json" + init({ lng: "en", fallbackLng: "en", // language to use if translations in user language are not available. @@ -22,6 +24,9 @@ init({ ja: { translation: ja, }, + ur: { + translation: ur + } }, }) From 47836a9307cd7caf81b9c459e0abd43f4dcebceb Mon Sep 17 00:00:00 2001 From: Asher Date: Fri, 22 Sep 2023 17:13:23 -0800 Subject: [PATCH 3/3] Run formatter --- src/node/i18n/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/node/i18n/index.ts b/src/node/i18n/index.ts index 57e68fcbfccc..4ee718e13aa2 100644 --- a/src/node/i18n/index.ts +++ b/src/node/i18n/index.ts @@ -2,8 +2,8 @@ import i18next, { init } from "i18next" import * as en from "./locales/en.json" import * as ja from "./locales/ja.json" import * as th from "./locales/th.json" -import * as zhCn from "./locales/zh-cn.json" import * as ur from "./locales/ur.json" +import * as zhCn from "./locales/zh-cn.json" init({ lng: "en", @@ -25,8 +25,8 @@ init({ translation: ja, }, ur: { - translation: ur - } + translation: ur, + }, }, })