From a6630a2f790f43a603b04b7e57fee214512c539e Mon Sep 17 00:00:00 2001 From: pavanjoshi914 Date: Thu, 2 Jan 2025 23:43:36 +0530 Subject: [PATCH 1/2] feat: add tamil and russian language to locale switcher --- src/i18n/i18nConfig.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/i18n/i18nConfig.ts b/src/i18n/i18nConfig.ts index 320e949860..cda9c20ab1 100644 --- a/src/i18n/i18nConfig.ts +++ b/src/i18n/i18nConfig.ts @@ -10,8 +10,10 @@ import "dayjs/locale/it"; import "dayjs/locale/mr"; import "dayjs/locale/pl"; import "dayjs/locale/pt-br"; +import "dayjs/locale/ru"; import "dayjs/locale/si"; import "dayjs/locale/sv"; +import "dayjs/locale/ta"; import "dayjs/locale/zh-cn"; import i18n from "i18next"; import LanguageDetector from "i18next-browser-languagedetector"; @@ -29,8 +31,10 @@ import it from "~/i18n/locales/it/translation.json"; import mr from "~/i18n/locales/mr/translation.json"; import pl from "~/i18n/locales/pl/translation.json"; import pt_BR from "~/i18n/locales/pt_BR/translation.json"; +import ru from "~/i18n/locales/ru/translation.json"; import si from "~/i18n/locales/si/translation.json"; import sv from "~/i18n/locales/sv/translation.json"; +import ta from "~/i18n/locales/ta/translation.json"; import th from "~/i18n/locales/th/translation.json"; import zh_Hans from "~/i18n/locales/zh_Hans/translation.json"; @@ -133,6 +137,18 @@ export const resources = { components: si.components, permissions: si.permissions, }, + ta: { + translation: ta.translation, + common: ta.common, + components: ta.components, + permissions: ta.permissions, + }, + ru: { + translation: ru.translation, + common: ru.common, + components: ru.components, + permissions: ru.permissions, + }, } as const; // needs to be aligned with `resources` @@ -154,6 +170,8 @@ export const supportedLocales = [ { locale: "th", label: "ไทย" }, { locale: "fa", label: "فارسی" }, { locale: "si", label: "Sinhalese" }, + { locale: "ta", label: "Tamil" }, + { locale: "ru", label: "Russian" }, ]; i18n From dbcc2e83d579ab750061f3a6ef177d71f5e90d7f Mon Sep 17 00:00:00 2001 From: pavanjoshi914 Date: Thu, 2 Jan 2025 23:54:58 +0530 Subject: [PATCH 2/2] fix: ru translation file --- src/i18n/locales/ru/translation.json | 273 +-------------------------- 1 file changed, 3 insertions(+), 270 deletions(-) diff --git a/src/i18n/locales/ru/translation.json b/src/i18n/locales/ru/translation.json index 7d9dcef556..31247152f2 100644 --- a/src/i18n/locales/ru/translation.json +++ b/src/i18n/locales/ru/translation.json @@ -626,17 +626,14 @@ }, "name": { "title": "Имя", - "subtitle": "", "placeholder": "Введите ваше имя" }, "email": { "title": "Email", - "subtitle": "", "placeholder": "Введите адрес вашей электронной почты" }, "change_password": { "title": "Изменение пароля разблокировки", - "subtitle": "", "screen_reader": "Изменить пароль разблокировки", "choose_password": { "label": "Введите новый код разблокировки:" @@ -745,70 +742,6 @@ "status": "Проверка состояния оплаты" } }, - "publishers": { - "title": "", - "description": "", - "no_info": "", - "discover": "", - "publisher": { - "allowance": { - "title": "", - "used_budget": "" - } - } - }, - "make_invoice": { - "title": "", - "amount": { - "label": "" - }, - "memo": { - "label": "" - }, - "errors": { - "amount_too_small": "", - "amount_too_big": "" - } - }, - "confirm_sign_message": { - "title": "", - "content": "" - }, - "confirm_keysend": { - "title": "", - "success": "", - "payment_summary": { - "description": "" - } - }, - "keysend": { - "title": "", - "success": "", - "receiver": { - "label": "" - }, - "amount": { - "label": "" - } - }, - "confirm_payment": { - "title": "", - "success": "", - "actions": { - "pay_now": "" - } - }, - "confirm_request_permission": { - "title": "", - "allow": "", - "always_allow": "" - }, - "nostr": { - "title": "", - "content": "", - "block_and_ignore": "", - "block_added": "" - }, "lnurlredeem": { "errors": { "invalid_withdraw_request": "Недейственный запрос LNURL отозвать", @@ -880,207 +813,7 @@ "request2": "Запросите счета и информацию о молниях" } }, - "common": { - "password": "", - "confirm_password": "", - "success": "", - "error": "", - "accounts": "", - "discover": "", - "connected_sites": "", - "sats_one": "", - "sats_other": "", - "loading": "", - "amount": "", - "optional": "", - "feedback": "", - "copied": "", - "description": "", - "description_full": "", - "success_message": "", - "response": "", - "message": "", - "help": "", - "actions": { - "back": "", - "delete": "", - "edit": "", - "next": "", - "open": "", - "cancel": "", - "confirm": "", - "continue": "", - "connect": "", - "lock": "", - "unlock": "", - "send": "", - "save": "", - "receive": "", - "receive_again": "", - "close": "", - "export": "", - "remove": "", - "copy": "", - "copy_invoice": "", - "log_in": "", - "remember": "" - }, - "errors": { - "connection_failed": "", - "payment_failed": "" - } - }, - "components": { - "allowance_menu": { - "confirm_delete": "", - "hint": "", - "new_budget": { - "label": "" - }, - "enable_login": { - "title": "", - "subtitle": "" - }, - "edit_allowance": { - "title": "", - "screen_reader": "" - } - }, - "qrcode_scanner": { - "title": "", - "actions": { - "start_scanning": "", - "stop_scanning": "" - }, - "errors": { - "allow_camera_access": "" - } - }, - "transactions_table": { - "fee": "", - "preimage": "", - "received": "", - "sent": "", - "boostagram": { - "sender": "", - "message": "", - "app": "", - "podcast": "" - }, - "open_location": "" - }, - "budget_control": { - "remember": { - "label": "", - "description": "" - }, - "budget": { - "label": "" - } - }, - "toasts": { - "connection_error": { - "what_you_can_do": "", - "double_check": "", - "if_ssl_errors": "", - "visit_guides": "" - }, - "login_failed": { - "password_reset": "" - }, - "errors": { - "invalid_credentials": "" - } - }, - "account_menu": { - "screen_reader": "" - }, - "publishers_table": { - "payments": "" - }, - "badge": { - "label": { - "auth": "" - } - } - }, - "permissions": { - "commando": { - "bkpr-listbalances": "", - "checkmessage": "", - "connect": "", - "decode": "", - "decodepay": "", - "disconnect": "", - "feerates": "", - "fundchannel": "", - "getinfo": "", - "getroute": "", - "invoice": "", - "keysend": "", - "listforwards": "", - "listfunds": "", - "listinvoices": "", - "listnodes": "", - "listoffers": "", - "listpays": "", - "listpeers": "", - "listsendpays": "", - "listtransactions": "", - "multifundchannel": "", - "offer": "", - "pay": "", - "sendpay": "", - "setchannel": "", - "signmessage": "" - }, - "lnd": { - "getinfo": "", - "listchannels": "", - "listinvoices": "", - "channelbalance": "", - "walletbalance": "", - "openchannel": "", - "connectpeer": "", - "disconnectpeer": "", - "estimatefee": "", - "getchaninfo": "", - "getnetworkinfo": "", - "getnodeinfo": "", - "gettransactions": "", - "listpayments": "", - "listpeers": "", - "lookupinvoice": "", - "queryroutes": "", - "verifymessage": "", - "sendtoroute": "", - "decodepayreq": "", - "routermc": "", - "addinvoice": "" - }, - "lnc": { - "getinfo": "", - "listchannels": "", - "listinvoices": "", - "channelbalance": "", - "walletbalance": "", - "openchannel": "", - "connectpeer": "", - "disconnectpeer": "", - "estimatefee": "", - "getchaninfo": "", - "getnetworkinfo": "", - "getnodeinfo": "", - "gettransactions": "", - "listpayments": "", - "listpeers": "", - "lookupinvoice": "", - "queryroutes": "", - "verifymessage": "", - "sendtoroute": "", - "decodepayreq": "", - "routermc": "", - "addinvoice": "" - } - } + "common": {}, + "components": {}, + "permissions": {} }