Skip to content

Commit

Permalink
Merge pull request #3297 from getAlby/introduce-new-language
Browse files Browse the repository at this point in the history
feat: add tamil and russian language to locale switcher
  • Loading branch information
pavanjoshi914 authored Jan 8, 2025
2 parents cc6b038 + dbcc2e8 commit 3a4a063
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 270 deletions.
18 changes: 18 additions & 0 deletions src/i18n/i18nConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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";

Expand Down Expand Up @@ -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`
Expand All @@ -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
Expand Down
273 changes: 3 additions & 270 deletions src/i18n/locales/ru/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -626,17 +626,14 @@
},
"name": {
"title": "Имя",
"subtitle": "",
"placeholder": "Введите ваше имя"
},
"email": {
"title": "Email",
"subtitle": "",
"placeholder": "Введите адрес вашей электронной почты"
},
"change_password": {
"title": "Изменение пароля разблокировки",
"subtitle": "",
"screen_reader": "Изменить пароль разблокировки",
"choose_password": {
"label": "Введите новый код разблокировки:"
Expand Down Expand Up @@ -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 отозвать",
Expand Down Expand Up @@ -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": {}
}

0 comments on commit 3a4a063

Please sign in to comment.