aboutsummaryrefslogtreecommitdiffstats
path: root/src/App.js
diff options
context:
space:
mode:
authorKeJun <kejun1997@gmail.com>2021-07-17 23:03:14 +0800
committerGitHub <noreply@github.com>2021-07-17 08:03:14 -0700
commitb0ee18a9c0f16517aa87f8b58df55286af2f04f1 (patch)
tree647bf1665763a19a6683f9c4e1c5e2278b4ee6cd /src/App.js
parente5a1f300fff1ceb0f89de2b2a93fe2f4096803c8 (diff)
feat: add language detector (#67)
* feat: add language detector * style: fmt code
Diffstat (limited to 'src/App.js')
-rw-r--r--src/App.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/App.js b/src/App.js
index f195431..0e975fb 100644
--- a/src/App.js
+++ b/src/App.js
@@ -16,9 +16,12 @@ function App() {
16 16
17 <div> 17 <div>
18 <label>{t('select')}</label> 18 <label>{t('select')}</label>
19 <select onChange={(e) => i18n.changeLanguage(e.target.value)}> 19 <select
20 value={i18n.language}
21 onChange={(e) => i18n.changeLanguage(e.target.value)}
22 >
20 <option value="en-US">en-US</option> 23 <option value="en-US">en-US</option>
21 <option value="简体中文">简体中文</option> 24 <option value="zh-CN">简体中文</option>
22 <option value="es">es</option> 25 <option value="es">es</option>
23 <option value="pt">Português</option> 26 <option value="pt">Português</option>
24 </select> 27 </select>