-
Notifications
You must be signed in to change notification settings - Fork 621
[SDK] Feature: added ru_RU locale to thirdweb package #6520
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 6 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
0d18b5f
added ru_RU locale to SmartWallet component
denpiligrim 73ffa2c
add: full translation of the ru_RU locale
denpiligrim 0348b0c
Merge branch 'main' into ru-locale
denpiligrim efff8c6
Merge branch 'main' into ru-locale
denpiligrim c93d5fe
Merge branch 'main' into ru-locale
denpiligrim 43e5cce
Merge branch 'main' into ru-locale
denpiligrim 0c376b1
Fixed some translation strings
denpiligrim 0f77164
Merge branch 'main' into ru-locale
denpiligrim 24e73aa
Merge remote-tracking branch 'origin/main' into ru-locale
joaquim-verges 1565f76
lint
joaquim-verges File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "thirdweb": patch | ||
| --- | ||
|
|
||
| Added ru_RU locale to thirdweb package |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
122 changes: 122 additions & 0 deletions
122
packages/thirdweb/src/react/web/ui/ConnectWallet/locale/ru.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,122 @@ | ||
| import type { ConnectLocale } from "./types.js"; | ||
|
|
||
| const connectLocaleRu: ConnectLocale = { | ||
| id: "ru_RU", | ||
| signIn: "Войти", | ||
| defaultButtonTitle: "Подключиться", | ||
| connecting: "Подключение", | ||
| switchNetwork: "Сменить сеть", | ||
| switchingNetwork: "Смена сети", | ||
| defaultModalTitle: "Войти", | ||
| recommended: "Рекомендуется", | ||
| installed: "Установлено", | ||
| buy: "Купить", | ||
| continueAsGuest: "Продолжить как гость", | ||
| connectAWallet: "Подключить кошелек", | ||
| newToWallets: "Новичок в кошельках?", | ||
| getStarted: "Начать", | ||
| guest: "Гость", | ||
| send: "Отправить", | ||
| receive: "Получить", | ||
| currentNetwork: "Текущая сеть", | ||
| switchAccount: "Сменить аккаунт", | ||
| requestTestnetFunds: "Запросить средства тестовой сети", | ||
| transactions: "Транзакции", | ||
| payTransactions: "Фиатные транзакции", | ||
| walletTransactions: "Транзакции кошелька", | ||
| viewAllTransactions: "Просмотреть все транзакции", | ||
| backupWallet: "Создать резервную копию кошелька", | ||
| guestWalletWarning: | ||
| "Это временный гостевой кошелек. Создайте резервную копию, если не хотите потерять к нему доступ", | ||
| switchTo: "Переключиться на", // Используется в "Switch to <Wallet-Name>>" | ||
| connectedToSmartWallet: "Умный аккаунт", | ||
catalyst17 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| confirmInWallet: "Подтвердить в кошельке", | ||
| disconnectWallet: "Отключить кошелек", | ||
catalyst17 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| copyAddress: "Скопировать адрес", | ||
| personalWallet: "Личный кошелек", | ||
| smartWallet: "Умный кошелек", | ||
catalyst17 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| or: "ИЛИ", | ||
| goBackButton: "Назад", | ||
| passkeys: { | ||
| title: "Ключи доступа", | ||
| linkPasskey: "Привязать ключ доступа", | ||
| }, | ||
| welcomeScreen: { | ||
| defaultTitle: "Ваш вход в децентрализованный мир", | ||
catalyst17 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| defaultSubtitle: "Подключите кошелек, чтобы начать", | ||
| }, | ||
| agreement: { | ||
| prefix: "Подключаясь, вы соглашаетесь с", | ||
| termsOfService: "Условиями использования", | ||
| and: "и", | ||
| privacyPolicy: "Политикой конфиденциальности", | ||
| }, | ||
| networkSelector: { | ||
| title: "Выбрать сеть", | ||
| mainnets: "Основные сети", | ||
| testnets: "Тестовые сети", | ||
catalyst17 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| allNetworks: "Все", | ||
| addCustomNetwork: "Добавить пользовательскую сеть", | ||
catalyst17 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| inputPlaceholder: "Поиск сети или ID цепочки", | ||
catalyst17 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| categoryLabel: { | ||
| recentlyUsed: "Недавно использованные", | ||
| popular: "Популярные", | ||
| others: "Все сети", | ||
| }, | ||
| loading: "Загрузка", | ||
| failedToSwitch: "Не удалось сменить сеть", | ||
| }, | ||
| receiveFundsScreen: { | ||
| title: "Получить средства", | ||
| instruction: "Скопируйте адрес кошелька, чтобы отправить средства на этот кошелек", | ||
| }, | ||
| sendFundsScreen: { | ||
| title: "Отправить средства", | ||
| submitButton: "Отправить", | ||
| token: "Токен", | ||
| sendTo: "Отправить на", | ||
| amount: "Сумма", | ||
| successMessage: "Транзакция успешно выполнена", | ||
| invalidAddress: "Недействительный адрес", | ||
| noTokensFound: "Токены не найдены", | ||
| searchToken: "Поиск или вставка адреса токена", | ||
catalyst17 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| transactionFailed: "Транзакция не удалась", | ||
| transactionRejected: "Транзакция отклонена", | ||
| insufficientFunds: "Недостаточно средств", | ||
| selectTokenTitle: "Выбрать токен", | ||
| sending: "Отправка", | ||
| }, | ||
| signatureScreen: { | ||
| instructionScreen: { | ||
| title: "Войти", | ||
| instruction: "Пожалуйста, подпишите запрос сообщения в вашем кошельке, чтобы продолжить", | ||
catalyst17 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| signInButton: "Войти", | ||
| disconnectWallet: "Отключить кошелек", | ||
catalyst17 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }, | ||
| signingScreen: { | ||
| title: "Вход", | ||
| prompt: "Подпись запроса в вашем кошельке", | ||
| promptForSafe: | ||
| "Подпишите запрос в вашем кошельке и подтвердите транзакцию в Safe", | ||
| approveTransactionInSafe: "Подтвердить транзакцию в Safe", | ||
| tryAgain: "Попробовать снова", | ||
| failedToSignIn: "Не удалось войти", | ||
| inProgress: "Ожидание подтверждения", | ||
| }, | ||
| }, | ||
| manageWallet: { | ||
| title: "Управление кошельком", | ||
| linkedProfiles: "Привязанные профили", | ||
| linkProfile: "Привязать профиль", | ||
| connectAnApp: "Подключить приложение", | ||
| exportPrivateKey: "Экспортировать приватный ключ", | ||
| }, | ||
| viewFunds: { | ||
| title: "Просмотр средств", | ||
| viewNFTs: "Просмотр NFT", | ||
catalyst17 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| viewTokens: "Просмотр токенов", | ||
| viewAssets: "Просмотр активов", | ||
| }, | ||
| }; | ||
|
|
||
| export default connectLocaleRu; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,4 +8,5 @@ export type LocaleId = | |
| | "vi_VN" | ||
| | "de_DE" | ||
| | "fr_FR" | ||
| | "ru_RU" | ||
| | "pt_BR"; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
packages/thirdweb/src/react/web/wallets/injected/locale/ru.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| import type { InjectedWalletLocale } from "./types.js"; | ||
|
|
||
| /** | ||
| * @internal | ||
| */ | ||
| const injectedWalletLocaleRu = (wallet: string): InjectedWalletLocale => ({ | ||
| connectionScreen: { | ||
| inProgress: "Ожидание подтверждения", | ||
| failed: "Подключение не удалось", | ||
| instruction: `Примите запрос на подключение в ${wallet}`, | ||
| retry: "Попробовать снова", | ||
| }, | ||
| getStartedScreen: { | ||
| instruction: `Отсканируйте QR-код, чтобы скачать приложение ${wallet}`, | ||
| }, | ||
| scanScreen: { | ||
| instruction: `Отсканируйте QR-код с помощью приложения ${wallet} для подключения`, | ||
catalyst17 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }, | ||
| getStartedLink: `Нет ${wallet}?`, | ||
catalyst17 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| download: { | ||
| chrome: "Скачать расширение для Chrome", | ||
| android: "Скачать в Google Play", | ||
| iOS: "Скачать в App Store", | ||
| }, | ||
| }); | ||
|
|
||
| export default injectedWalletLocaleRu; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
packages/thirdweb/src/react/web/wallets/shared/locale/ru.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| import type { InAppWalletLocale } from "./types.js"; | ||
|
|
||
| export default { | ||
| signInWithGoogle: "Google", | ||
| signInWithFacebook: "Facebook", | ||
| signInWithApple: "Apple", | ||
| signInWithDiscord: "Discord", | ||
| emailPlaceholder: "Адрес электронной почты", | ||
| submitEmail: "Продолжить", | ||
| signIn: "Войти", | ||
| or: "или", | ||
| emailRequired: "Требуется адрес электронной почты", | ||
| invalidEmail: "Неправильный адрес электронной почты", | ||
catalyst17 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| maxAccountsExceeded: | ||
| "Превышено максимальное количество аккаунтов. Пожалуйста, сообщите разработчику приложения.", | ||
| socialLoginScreen: { | ||
| title: "Войти", | ||
| instruction: "Войдите в свой аккаунт во всплывающем окне", | ||
| failed: "Не удалось войти", | ||
| retry: "Повторить попытку", | ||
| }, | ||
| emailLoginScreen: { | ||
| title: "Войти", | ||
| enterCodeSendTo: "Введите код подтверждения, отправленный на", | ||
| newDeviceDetected: "Обнаружено новое устройство", | ||
| enterRecoveryCode: | ||
| "Введите код восстановления, отправленный вам по электронной почте при первой регистрации", | ||
| invalidCode: "Неверный код подтверждения", | ||
| invalidCodeOrRecoveryCode: "Неверный код подтверждения или код восстановления", | ||
| verify: "Подтвердить", | ||
| failedToSendCode: "Не удалось отправить код подтверждения", | ||
| sendingCode: "Отправка кода подтверждения", | ||
| resendCode: "Повторно отправить код подтверждения", | ||
| }, | ||
| createPassword: { | ||
| title: "Создать пароль", | ||
| instruction: | ||
| "Установите пароль для вашего аккаунта. Этот пароль понадобится при подключении с нового устройства.", | ||
| saveInstruction: "Обязательно сохраните его", | ||
| inputPlaceholder: "Введите ваш пароль", | ||
| confirmation: "Я сохранил свой пароль", | ||
| submitButton: "Установить пароль", | ||
| failedToSetPassword: "Не удалось установить пароль", | ||
| }, | ||
| enterPassword: { | ||
| title: "Введите пароль", | ||
| instruction: "Введите пароль для вашего аккаунта", | ||
| inputPlaceholder: "Введите ваш пароль", | ||
| submitButton: "Подтвердить", | ||
| wrongPassword: "Неверный пароль", | ||
| }, | ||
| signInWithEmail: "Войти с помощью электронной почты", | ||
| invalidPhone: "Недействительный номер телефона", | ||
| phonePlaceholder: "Номер телефона", | ||
| signInWithPhone: "Войти с помощью номера телефона", | ||
| phoneRequired: "Требуется номер телефона", | ||
| passkey: "Ключ доступа", | ||
| signInWithWallet: "Войти с помощью кошелька", | ||
| linkWallet: "Привязать кошелек", | ||
| loginAsGuest: "Продолжить как гость", | ||
| } satisfies InAppWalletLocale; | ||
graphite-app[bot] marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
packages/thirdweb/src/react/web/wallets/smartWallet/locale/ru.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| import type { SmartWalletLocale } from "./types.js"; | ||
|
|
||
| const smartWalletLocalRu: SmartWalletLocale = { | ||
joaquim-verges marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| connecting: "Подключение к смарт-аккаунту", | ||
| failedToConnect: "Не удалось подключиться к смарт-аккаунту", | ||
| wrongNetworkScreen: { | ||
| title: "Неверная сеть", | ||
| subtitle: "Ваш кошелек не подключен к нужной сети", | ||
| failedToSwitch: "Не удалось сменить сеть", | ||
| }, | ||
| }; | ||
|
|
||
| export default smartWalletLocalRu; | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.