Skip to content

Commit c31a9bf

Browse files
NivBrazNivOclearreesscot
authored
Added Hebrew as an option for Authenticator (#2907)
Co-authored-by: Niv <[email protected]> Co-authored-by: Scott Rees <[email protected]>
1 parent 1847840 commit c31a9bf

File tree

6 files changed

+64
-0
lines changed

6 files changed

+64
-0
lines changed

.changeset/mean-ways-eat.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@aws-amplify/ui': patch
3+
---
4+
5+
Added Hebrew as an option for Authenticator

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

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ The `Authenticator` ships with [translations](https://github.com/aws-amplify/amp
1818
- `es` – Spanish
1919
- `sv` – Swedish
2020
- `tr` – Turkish
21+
- `he` – Hebrew
2122

2223
These [translations](https://github.com/aws-amplify/amplify-ui/blob/main/packages/ui/src/i18n/translations.ts) can be customized using the [Amplify JS' `I18n`](https://docs.amplify.aws/lib/utilities/i18n/q/platform/js/) module:
2324

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
import { AuthenticatorDictionary } from './types';
2+
3+
export const heDict: AuthenticatorDictionary = {
4+
'Account recovery requires verified contact information':
5+
'שחזור לקוח דורש עוד מידע',
6+
'Back to Sign In': 'חזור להרשמה',
7+
'Change Password': 'עדכון סיסמא',
8+
Changing: 'מעדכן',
9+
Code: 'קוד',
10+
'Confirm Password': 'אשר סיסמא',
11+
'Confirm Sign Up': 'אשר הרשמה',
12+
'Confirm SMS Code': 'אשר sms קוד',
13+
'Confirm TOTP Code': 'אשר totp קוד',
14+
Confirm: 'אישור',
15+
'Confirmation Code': 'אישור קוד',
16+
Confirming: 'מאשר',
17+
'Create a new account': 'צור משתמש חדש',
18+
'Create Account': 'צור משתמש',
19+
'Creating Account': 'יצירת משתמש',
20+
'Dismiss alert': 'הסר התראה',
21+
Email: 'אימייל',
22+
'Enter your code': 'הכנס את הקוד',
23+
'Enter your email': 'הכנס את המייל שלך',
24+
'Enter your phone number': 'הכנס את מספר הטלפון שלך',
25+
'Enter your username': 'הכנס את שם המתמש שלך',
26+
'Forgot your password?': 'שחכת סיסמא ?',
27+
'Hide password': 'הסתר סיסמא',
28+
Loading: 'טוען',
29+
'New password': 'סיסמא חדשה',
30+
Password: 'סיסמא',
31+
'Phone Number': 'מספר טלפון',
32+
'Resend Code': 'שלח קוד שוב',
33+
'Reset your password': 'אפס סיסמא',
34+
'Reset your Password': 'אפס סיסמא',
35+
'Send code': 'שלח קוד',
36+
'Send Code': 'שלח קוד',
37+
Sending: 'שולח',
38+
'Setup TOTP': 'Setup TOTP',
39+
'Show password': 'הצג סיסמא',
40+
'Sign in to your account': 'התחבר לחשבון שלך',
41+
'Sign In with Amazon': 'Sign In with Amazon',
42+
'Sign In with Apple': 'Sign In with Apple',
43+
'Sign In with Facebook': 'Sign In with Facebook',
44+
'Sign In with Google': 'Sign In with Google',
45+
'Sign in': 'התחבר',
46+
'Sign In': 'התחבר',
47+
'Signing in': 'מתחבר',
48+
Skip: 'דלג',
49+
Submit: 'שלח',
50+
Submitting: 'שולח',
51+
Username: 'שם משתמש',
52+
'Verify Contact': 'אמת איש קשר',
53+
Verify: 'אמת',
54+
};

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

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export { svDict } from './sv';
1414
export { idDict } from './id';
1515
export { trDict } from './tr';
1616
export { ruDict } from './ru';
17+
export { heDict } from './he';
1718

1819
// default text phrases
1920
export { defaultTexts } from './defaultTexts';

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

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export const svDict = { ...authenticatorDict.svDict };
1616
export const idDict = { ...authenticatorDict.idDict };
1717
export const trDict = { ...authenticatorDict.trDict };
1818
export const ruDict = { ...authenticatorDict.ruDict };
19+
export const heDict = { ...authenticatorDict.heDict };
1920

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

packages/ui/src/i18n/translations.ts

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import {
2929
trDict,
3030
ruDict,
3131
defaultTexts,
32+
heDict,
3233
} from './dictionaries';
3334

3435
/**
@@ -91,4 +92,5 @@ export const translations: Record<string, Dict> = {
9192
sv: svDict,
9293
tr: trDict,
9394
ru: ruDict,
95+
he: heDict,
9496
};

0 commit comments

Comments
 (0)