Skip to content

Commit 74e8c89

Browse files
robPTYzchenweiwlee221
authored
Added Russian as an option for Authenticator (#2261)
* Added Russian as an option for Authenticator * Create rude-goats-lick.md * Update rs.ts * Added Russian as supported language * Added the Russian dict * Merged Russian translation in constant * Update translations.ts * Rename rs.ts to ru.ts Co-authored-by: Chenwei Zhang <[email protected]> Co-authored-by: William Lee <[email protected]>
1 parent f52ac10 commit 74e8c89

File tree

6 files changed

+61
-0
lines changed

6 files changed

+61
-0
lines changed

.changeset/rude-goats-lick.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@aws-amplify/ui": patch
3+
---
4+
5+
Added Russian as an option for Authenticator

docs/src/pages/[platform]/connected-components/authenticator/customization/customization.i18n.web.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ The `Authenticator` ships with [translations](https://github.com/aws-amplify/amp
1414
- `kr` – Korean
1515
- `pl` – Polish
1616
- `pt` – Portuguese
17+
- `ru` – Russian
1718
- `es` – Spanish
1819
- `sv` – Swedish
1920
- `tr` – Turkish

packages/ui/src/i18n/dictionaries/authenticator/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export { zhDict } from './zh';
1313
export { svDict } from './sv';
1414
export { idDict } from './id';
1515
export { trDict } from './tr';
16+
export { ruDict } from './ru';
1617

1718
// default text phrases
1819
export { defaultTexts } from './defaultTexts';
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
export const ruDict = {
2+
'Account recovery requires verified contact information':
3+
'Восстановление учетной записи требует проверки контактной информации',
4+
'Back to Sign In': 'Назад, чтобы войти',
5+
'Change Password': 'изменять пароль',
6+
Changing: 'Изменение',
7+
Code: 'Код',
8+
Confirm: 'Подтверждать',
9+
'Confirm Password': 'Подтверждение пароля',
10+
'Confirm Sign Up': 'Подтверждение зарегистрироваться',
11+
'Confirm SMS Code': 'Подтверждение CMC-Код',
12+
'Confirm TOTP Code': 'Подтверждение TOTP-Код',
13+
'Confirmation Code': 'код подтверждения',
14+
Confirming: 'подтверждение',
15+
'Create Account': 'Создать учетную запись',
16+
'Creating Account': 'создание учетная запись',
17+
Email: 'электронная почта',
18+
'Enter your code': 'ввести ваш Код',
19+
'Enter your username': 'ввести ваш имя пользователя',
20+
'Enter your phone number': 'ввести ваш номер телефона',
21+
'Enter your email': 'ввести ваш электронная почта',
22+
'Forgot your password?': 'Забыли ваш пароль?',
23+
'Hide password': 'Скрывать пароль',
24+
Loading: 'Загрузка',
25+
Username: 'Имя пользователя',
26+
'New password': 'Новый пароль',
27+
Password: 'Пароль',
28+
'Phone Number': 'Номер телефона',
29+
'Resend Code': 'Отправь еще раз Код',
30+
'Reset your password': 'сброс ваш пароль',
31+
'Reset your Password': 'сброс ваш Пароль',
32+
'Send Code': 'Отправлять Код',
33+
'Send code': 'Отправлять Код',
34+
Sending: 'отправка',
35+
'Setup TOTP': 'Настраивать TOTP',
36+
'Show password': 'Показывать пароль',
37+
'Sign in': 'знак в',
38+
'Sign In': 'знак в',
39+
'Sign In with Amazon': 'знак в с Amazon',
40+
'Sign In with Apple': 'знак в с Apple',
41+
'Sign In with Facebook': 'знак в с Facebook',
42+
'Sign In with Google': 'знак в с Google',
43+
'Sign in to your account': 'знак в свой аккаунт',
44+
'Create a new account': 'Создавать новую учетную запись',
45+
'Signing in': 'подписание в',
46+
Skip: 'Пропускать',
47+
Submit: 'Представлять на рассмотрение',
48+
Submitting: 'Представив',
49+
'Verify Contact': 'Проверить контакт',
50+
Verify: 'Проверить',
51+
};

packages/ui/src/i18n/dictionaries/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export const zhDict = { ...authenticatorDict.zhDict };
1515
export const svDict = { ...authenticatorDict.svDict };
1616
export const idDict = { ...authenticatorDict.idDict };
1717
export const trDict = { ...authenticatorDict.trDict };
18+
export const ruDict = { ...authenticatorDict.ruDict };
1819

1920
export const defaultTexts = {
2021
...authenticatorDict.defaultTexts,

packages/ui/src/i18n/translations.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import {
2727
svDict,
2828
idDict,
2929
trDict,
30+
ruDict,
3031
defaultTexts,
3132
} from './dictionaries';
3233

@@ -89,4 +90,5 @@ export const translations: Record<string, Dict> = {
8990
zh: zhDict,
9091
sv: svDict,
9192
tr: trDict,
93+
ru: ruDict,
9294
};

0 commit comments

Comments
 (0)