Merge pull request #491 from trezor/fix/locales

Fix/locales
pull/496/head
Vladimir Volek 5 years ago committed by GitHub
commit 50767c77c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Before

Width:  |  Height:  |  Size: 942 B

After

Width:  |  Height:  |  Size: 942 B

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

@ -62,7 +62,11 @@ const mapStateToProps: MapStateToProps<State, OwnProps, StateProps> = (
});
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}
</IntlProvider>
);

Loading…
Cancel
Save