From 3f058074ac61ca92203697feca097ccbb7502643 Mon Sep 17 00:00:00 2001 From: nutsflag <26460023+nutsflag@users.noreply.github.com> Date: Sun, 7 Apr 2019 15:05:56 +0200 Subject: [PATCH] Add Fr to languageswitcher --- .../LanguageSwitcher/LanguageSwitcher.js | 58 +++++++++++++++---- 1 file changed, 46 insertions(+), 12 deletions(-) diff --git a/src/components/LanguageSwitcher/LanguageSwitcher.js b/src/components/LanguageSwitcher/LanguageSwitcher.js index 3dd59d5..9d5a4c9 100644 --- a/src/components/LanguageSwitcher/LanguageSwitcher.js +++ b/src/components/LanguageSwitcher/LanguageSwitcher.js @@ -17,18 +17,52 @@ class LanguageSwitcher extends React.Component { this.props.i18n.changeLanguage(e.target.dataset.locale) } - render() { - return
- } -} + else if (this.t('locale') === 'zh') { + return ( + + ); + } + } +} export default withTranslation()(LanguageSwitcher);