From 88245b68d90373870cd7b9b000c2dcb85af3fad0 Mon Sep 17 00:00:00 2001 From: kairee Date: Sun, 22 Dec 2019 05:47:53 +0800 Subject: [PATCH] fix: add missed locale entities --- public/locales/en-US.json | 2 +- public/locales/zh-TW.json | 3 ++- src/App.tsx | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/public/locales/en-US.json b/public/locales/en-US.json index 855454d..ec663b8 100644 --- a/public/locales/en-US.json +++ b/public/locales/en-US.json @@ -10,6 +10,6 @@ "HDD": "HDD", "LOADING": "Data loading...", "WAIT": "Loading data from the server, please wait for a while...", - "LAST_UPDATE": "Last updated: {relativeTime}", + "LAST_UPDATE": "Last updated: {updatedTime}", "DAYS": "days" } \ No newline at end of file diff --git a/public/locales/zh-TW.json b/public/locales/zh-TW.json index 59d21bd..9666576 100644 --- a/public/locales/zh-TW.json +++ b/public/locales/zh-TW.json @@ -10,5 +10,6 @@ "HDD": "HDD", "LOADING": "數據載入中...", "WAIT": "正在從伺服器載入數據,請稍候...", - "LAST_UPDATE": "數據最後更新時間:" + "LAST_UPDATE": "數據最後更新時間:{updatedTime}", + "DAYS": "天" } \ No newline at end of file diff --git a/src/App.tsx b/src/App.tsx index 5aaebe0..fc0dbc5 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -27,7 +27,7 @@ const App: React.FC = () => { return () => { clearInterval(fetchData); } - }, []); + }); const [initDone, setInitDone] = useState(false); let currentLocale = navigator.language || 'zh-CN';