From 1fd784d0891f9bc854dfe3142f4b7c4d1a923f4b Mon Sep 17 00:00:00 2001 From: Wojciech Maj Date: Mon, 1 Jun 2020 12:53:03 +0200 Subject: [PATCH] Remove zh-TW, replace zh-CN with neutral zh-Hans locale --- src/i18n/i18n.js | 3 +-- src/i18n/json/{zh-CN.json => zh-Hans.json} | 0 src/i18n/json/zh-TW.json | 19 ------------------- src/i18n/languages.json | 8 ++------ 4 files changed, 3 insertions(+), 27 deletions(-) rename src/i18n/json/{zh-CN.json => zh-Hans.json} (100%) delete mode 100644 src/i18n/json/zh-TW.json diff --git a/src/i18n/i18n.js b/src/i18n/i18n.js index edc930f..d9d810d 100644 --- a/src/i18n/i18n.js +++ b/src/i18n/i18n.js @@ -24,8 +24,7 @@ export const languageFiles = { 'tr-TR': import('./json/tr-TR.json'), 'uk-UA': import('./json/uk-UA.json'), 'vi-VN': import('./json/vi-VN.json'), - 'zh-CN': import('./json/zh-CN.json'), - 'zh-TW': import('./json/zh-TW.json'), + 'zh-Hans': import('./json/zh-Hans.json'), }; export const supportedLocales = [defaultLocale].concat(Object.keys(languageFiles)); diff --git a/src/i18n/json/zh-CN.json b/src/i18n/json/zh-Hans.json similarity index 100% rename from src/i18n/json/zh-CN.json rename to src/i18n/json/zh-Hans.json diff --git a/src/i18n/json/zh-TW.json b/src/i18n/json/zh-TW.json deleted file mode 100644 index 5daf18c..0000000 --- a/src/i18n/json/zh-TW.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "React lifecycle methods diagram": "React生命周期方法圖", - "Options": "選項", - "Show less common lifecycles": "顯示不常用的生命周期", - "React version": "React版本", - "Language": "語言", - "Mounting": "掛載時", - "Updating": "更新時", - "Unmounting": "卸載時", - "“{name} phase”": "“{name} 階段”", - "Pure and has no side effects. May be paused, aborted or restarted by React.": "純粹且沒有副作用。 可能會被 React 暫停,中止或重新啟動。", - "Can read the DOM.": "可以讀取 DOM。", - "Can work with DOM, run side effects, schedule updates.": "可以使用DOM,執行副作用,排程進行更新。", - "React updates DOM and refs": "React 更新 DOM 和 refs", - "Read docs for {name} (opens in a new tab)": "閱讀 {name} 的文章(在新標簽中開啟)", - "https://reactjs.org/docs/react-component.html#{docname}": "https://zh-hant.reactjs.org/docs/react-component.html#{docname}", - "See project's page on GitHub (opens in a new tab)": "查看 GitHub 上的專案頁面(在新標簽頁中開啟)", - "See project on": "查看專案於" -} diff --git a/src/i18n/languages.json b/src/i18n/languages.json index 98bc251..783519d 100644 --- a/src/i18n/languages.json +++ b/src/i18n/languages.json @@ -105,11 +105,7 @@ "translated_name": "Tiếng Việt" }, { - "code": "zh-CN", - "name": "Chinese (China)" - }, - { - "code": "zh-TW", - "name": "Chinese (Taiwan)" + "code": "zh-Hans", + "name": "Simplified Chinese" } ]