Skip to content

Commit

Permalink
Added Hebrew as an option for Authenticator (#2907)
Browse files Browse the repository at this point in the history
Co-authored-by: Niv <niv@clearx.io>
Co-authored-by: Scott Rees <6165315+reesscot@users.noreply.github.com>
  • Loading branch information
3 people authored Dec 8, 2022
1 parent 1847840 commit c31a9bf
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/mean-ways-eat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@aws-amplify/ui': patch
---

Added Hebrew as an option for Authenticator
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ The `Authenticator` ships with [translations](https://github.com/aws-amplify/amp
- `es` – Spanish
- `sv` – Swedish
- `tr` – Turkish
- `he` – Hebrew

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:

Expand Down
54 changes: 54 additions & 0 deletions packages/ui/src/i18n/dictionaries/authenticator/he.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import { AuthenticatorDictionary } from './types';

export const heDict: AuthenticatorDictionary = {
'Account recovery requires verified contact information':
'שחזור לקוח דורש עוד מידע',
'Back to Sign In': 'חזור להרשמה',
'Change Password': 'עדכון סיסמא',
Changing: 'מעדכן',
Code: 'קוד',
'Confirm Password': 'אשר סיסמא',
'Confirm Sign Up': 'אשר הרשמה',
'Confirm SMS Code': 'אשר sms קוד',
'Confirm TOTP Code': 'אשר totp קוד',
Confirm: 'אישור',
'Confirmation Code': 'אישור קוד',
Confirming: 'מאשר',
'Create a new account': 'צור משתמש חדש',
'Create Account': 'צור משתמש',
'Creating Account': 'יצירת משתמש',
'Dismiss alert': 'הסר התראה',
Email: 'אימייל',
'Enter your code': 'הכנס את הקוד',
'Enter your email': 'הכנס את המייל שלך',
'Enter your phone number': 'הכנס את מספר הטלפון שלך',
'Enter your username': 'הכנס את שם המתמש שלך',
'Forgot your password?': 'שחכת סיסמא ?',
'Hide password': 'הסתר סיסמא',
Loading: 'טוען',
'New password': 'סיסמא חדשה',
Password: 'סיסמא',
'Phone Number': 'מספר טלפון',
'Resend Code': 'שלח קוד שוב',
'Reset your password': 'אפס סיסמא',
'Reset your Password': 'אפס סיסמא',
'Send code': 'שלח קוד',
'Send Code': 'שלח קוד',
Sending: 'שולח',
'Setup TOTP': 'Setup TOTP',
'Show password': 'הצג סיסמא',
'Sign in to your account': 'התחבר לחשבון שלך',
'Sign In with Amazon': 'Sign In with Amazon',
'Sign In with Apple': 'Sign In with Apple',
'Sign In with Facebook': 'Sign In with Facebook',
'Sign In with Google': 'Sign In with Google',
'Sign in': 'התחבר',
'Sign In': 'התחבר',
'Signing in': 'מתחבר',
Skip: 'דלג',
Submit: 'שלח',
Submitting: 'שולח',
Username: 'שם משתמש',
'Verify Contact': 'אמת איש קשר',
Verify: 'אמת',
};
1 change: 1 addition & 0 deletions packages/ui/src/i18n/dictionaries/authenticator/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export { svDict } from './sv';
export { idDict } from './id';
export { trDict } from './tr';
export { ruDict } from './ru';
export { heDict } from './he';

// default text phrases
export { defaultTexts } from './defaultTexts';
1 change: 1 addition & 0 deletions packages/ui/src/i18n/dictionaries/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const svDict = { ...authenticatorDict.svDict };
export const idDict = { ...authenticatorDict.idDict };
export const trDict = { ...authenticatorDict.trDict };
export const ruDict = { ...authenticatorDict.ruDict };
export const heDict = { ...authenticatorDict.heDict };

export const defaultTexts = {
...authenticatorDict.defaultTexts,
Expand Down
2 changes: 2 additions & 0 deletions packages/ui/src/i18n/translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import {
trDict,
ruDict,
defaultTexts,
heDict,
} from './dictionaries';

/**
Expand Down Expand Up @@ -91,4 +92,5 @@ export const translations: Record<string, Dict> = {
sv: svDict,
tr: trDict,
ru: ruDict,
he: heDict,
};

0 comments on commit c31a9bf

Please sign in to comment.