1
0
mirror of https://github.com/trezor/trezor-wallet synced 2025-01-12 09:00:58 +00:00

Merge pull request #491 from trezor/fix/locales

Fix/locales
This commit is contained in:
Vladimir Volek 2019-04-09 13:12:22 +02:00 committed by GitHub
commit 50767c77c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 4 deletions

View File

@ -53,7 +53,6 @@
"pt-PT": "pt", "pt-PT": "pt",
"ru": "ru", "ru": "ru",
"uk": "uk", "uk": "uk",
"zh-CN": "zh", "zh-CN": "zh"
"zh-TW": "zh_TW"
} }
} }

View File

Before

Width:  |  Height:  |  Size: 942 B

After

Width:  |  Height:  |  Size: 942 B

View File

@ -15,7 +15,7 @@ export const LANGUAGE = [
{ code: 'ru', name: 'Русский', en: 'Russian' }, { code: 'ru', name: 'Русский', en: 'Russian' },
{ code: 'uk', name: 'Українська', en: 'Ukrainian' }, { code: 'uk', name: 'Українська', en: 'Ukrainian' },
{ code: 'zh', name: '中文(简体)', en: 'Chinese Simplified' }, { code: 'zh', name: '中文(简体)', en: 'Chinese Simplified' },
{ code: 'zh_TW', name: '中文(台灣)', en: 'Chinese Traditional' }, { code: 'zh-TW', name: '中文(台灣)', en: 'Chinese Traditional' },
]; ];
export const FIAT_CURRENCIES = [ export const FIAT_CURRENCIES = [

View File

@ -62,7 +62,11 @@ const mapStateToProps: MapStateToProps<State, OwnProps, StateProps> = (
}); });
const ReactIntlProvider = ({ children, locale, messages }: Props) => ( const ReactIntlProvider = ({ children, locale, messages }: Props) => (
<IntlProvider locale={locale} messages={messages}> <IntlProvider
locale={locale}
messages={messages}
key={locale} // forces rerender IntlProvider when lang file is downloaded
>
{children} {children}
</IntlProvider> </IntlProvider>
); );