-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactoring i18n package to accomodate new UI modules in cleaner and …
…modular way (#825) Co-authored-by: pramod prajapati <[email protected]>
- Loading branch information
Showing
11 changed files
with
85 additions
and
64 deletions.
There are no files selected for viewing
File renamed without changes.
57 changes: 57 additions & 0 deletions
57
packages/ui/src/i18n/dictionaries/authenticator/defaultTexts.ts
This file contains 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,57 @@ | ||
export const defaultTexts = { | ||
BACK_SIGN_IN: 'Back to Sign In', | ||
BIRTHDATE: 'Birthdate', | ||
CHANGE_PASSWORD: 'Change Password', | ||
CHANGING_PASSWORD: 'Changing', | ||
CODE: 'Code', | ||
CONFIRM_PASSWORD: 'Confirm Password', | ||
CONFIRM_RESET_PASSWORD_HEADING: 'Reset your Password', | ||
CONFIRM_SIGNUP_HEADING: 'Confirm Sign Up', | ||
CONFIRM_SMS: 'Confirm SMS Code', | ||
CONFIRM_TOTP: 'Confirm TOTP Code', | ||
CONFIRM: 'Confirm', | ||
CONFIRMATION_CODE: 'Confirmation Code', | ||
CONFIRMING: 'Confirming', | ||
CREATE_ACCOUNT: 'Create Account', | ||
CREATING_ACCOUNT: 'Creating Account', | ||
EMAIL_ADDRESS: 'Email', | ||
ENTER_CODE: 'Enter your code', | ||
ENTER_USERNAME: 'Enter your username', | ||
FAMILY_NAME: 'Family Name', | ||
GIVEN_NAME: 'Given Name', | ||
FORGOT_YOUR_PASSWORD: 'Forgot your password? ', | ||
HIDE_PASSWORD: 'Hide password', | ||
LOADING: 'Loading', | ||
LOGIN_NAME: 'Username', | ||
MIDDLE_NAME: 'Middle Name', | ||
NAME: 'Name', | ||
NICKNAME: 'Nickname', | ||
NEW_PASSWORD: 'New password', | ||
PASSWORD: 'Password', | ||
PHONE_NUMBER: 'Phone Number', | ||
PREFERRED_USERNAME: 'Preferred Username', | ||
PROFILE: 'Profile', | ||
RESEND_CODE: 'Resend Code', | ||
RESET_PASSWORD_HEADING: 'Reset your password', | ||
RESET_PASSWORD: 'Send Code', | ||
SEND_CODE: 'Send code', | ||
SENDING: 'Sending', | ||
SETUP_TOTP: 'Setup TOTP', | ||
SHOW_PASSWORD: 'Show password', | ||
SIGN_IN_BUTTON: 'Sign in', | ||
SIGN_IN_TAB: 'Sign In', | ||
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 to your account', | ||
SIGN_UP_BUTTON: 'Create a new account', | ||
SIGNING_IN_BUTTON: 'Signing in', | ||
SKIP: 'Skip', | ||
SUBMIT: 'Submit', | ||
SUBMITTING: 'Submitting', | ||
VERIFY_CONTACT: 'Verify Contact', | ||
VERIFY_HEADING: 'Account recovery requires verified contact information', | ||
VERIFY: 'Verify', | ||
WEBSITE: 'Website', | ||
}; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains 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,11 @@ | ||
// translation dictionaries | ||
export { deDict } from './de'; | ||
export { enDict } from './en'; | ||
export { esDict } from './es'; | ||
export { frDict } from './fr'; | ||
export { itDict } from './it'; | ||
export { jaDict } from './ja'; | ||
export { zhDict } from './zh'; | ||
|
||
// default text phrases | ||
export { defaultTexts } from './defaultTexts'; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains 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 |
---|---|---|
@@ -1,7 +1,15 @@ | ||
export { deDict } from './de'; | ||
export { enDict } from './en'; | ||
export { esDict } from './es'; | ||
export { frDict } from './fr'; | ||
export { itDict } from './it'; | ||
export { jaDict } from './ja'; | ||
export { zhDict } from './zh'; | ||
import * as authenticatorDict from './authenticator'; | ||
|
||
//merge all the new module translations in respective locale constants | ||
export const deDict = { ...authenticatorDict.deDict }; | ||
export const enDict = { ...authenticatorDict.enDict }; | ||
export const esDict = { ...authenticatorDict.esDict }; | ||
export const frDict = { ...authenticatorDict.frDict }; | ||
export const itDict = { ...authenticatorDict.itDict }; | ||
export const jaDict = { ...authenticatorDict.jaDict }; | ||
export const zhDict = { ...authenticatorDict.zhDict }; | ||
|
||
export const defaultTexts = { | ||
...authenticatorDict.defaultTexts, | ||
// new module related default texts goes here | ||
}; |
This file contains 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