Skip to content
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

enable vietnamese translation #3245

Merged
merged 1 commit into from
Jun 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default class FlagLabel extends Component<Props> {
return (

<div className={styles.wrapper}>
<span className={styles.flag}><SvgElem /></span>
<span className={styles.flag}>{ typeof svg === 'string' ? svg : (<SvgElem />)}</span>
<span>{label}</span>
</div>
);
Expand Down
4 changes: 4 additions & 0 deletions packages/yoroi-extension/app/i18n/global-messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,10 @@ const globalMessages: * = defineMessages({
id: 'global.language.slovak',
defaultMessage: '!!!Slovak',
},
languageVietnamese: {
id: 'global.language.vietnamese',
defaultMessage: '!!!Vietnamese',
},
addressLabel: {
id: 'wallet.receive.confirmationDialog.addressLabel',
defaultMessage: '!!!Address',
Expand Down
5 changes: 3 additions & 2 deletions packages/yoroi-extension/app/i18n/locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@
"global.language.slovak": "Slovak",
"global.language.spanish": "Español",
"global.language.turkish": "Turkish",
"global.language.vietnamese": "Vietnamese",
"global.passwordInstructionsPaperWallet": "Note: Paper Wallet password needs to be at least <strong>10 characters</strong> long.",
"global.publicKey.explanation": "Public keys allow seeing the wallet history for the wallet, but does <strong>not</strong> allow to spend or move the funds in any way (private key is <strong>not</strong> included)",
"global.receive": "Receive",
Expand Down Expand Up @@ -462,11 +463,11 @@
"wallet.add.page.hw.tooltip": "Create or restore a Yoroi wallet<br/>using a Ledger or Trezor hardware wallet.",
"wallet.add.page.restore.title": "Restore wallet",
"wallet.add.page.restore.tooltip": "Enter a 15-word recovery phrase<br/>to restore an already-existing Yoroi wallet,<br/>or import an existing Yoroi paper wallet.",
"wallet.add.page.revamp.backButtonLabel": "Back to current wallet",
"wallet.add.page.revamp.connectHardwareWallet": "Connect hardware wallet",
"wallet.add.page.revamp.createWallet": "Create new wallet",
"wallet.add.page.revamp.restoreWallet": "Restore existing wallet",
"wallet.add.page.revamp.subtitle": "Light wallet for Cardano assets",
"wallet.add.page.revamp.backButtonLabel": "Back to current wallet",
"wallet.add.page.subtitle.label": "Yoroi light wallet for Cardano",
"wallet.add.page.title": "Your gateway <br> to the <br> financial world",
"wallet.address.category.addressBook": "Addresses that do not belong to you, but are relevant to your wallet",
Expand Down Expand Up @@ -1061,4 +1062,4 @@
"yoroiTransfer.waiting.progressInfo.checkingAddresses": "Checking addresses funds",
"yoroiTransfer.waiting.progressInfo.restoringAddresses": "Fetching addresses",
"yoroiTransfer.waiting.title.label": "Wallet is being restored"
}
}
5 changes: 5 additions & 0 deletions packages/yoroi-extension/app/i18n/translations.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,5 +116,10 @@ export const LANGUAGES: Array<LanguageType> = [
value: 'sk-SK',
label: globalMessages.languageSlovak,
svg: SlovakFlag
},
{
value: 'vi-VN',
label: globalMessages.languageVietnamese,
svg: '🇻🇳'
}
];