From 975674c74b9023a46099d47741a8705a1e132785 Mon Sep 17 00:00:00 2001 From: liuxiran Date: Tue, 11 Aug 2020 18:37:12 +0800 Subject: [PATCH] feat(i18n): Use auto load i18n (#332) (#371) --- src/locales/en-US.ts | 5 ----- src/locales/zh-CN.ts | 5 ----- src/pages/Consumer/index.ts | 2 -- src/pages/Route/index.ts | 2 -- 4 files changed, 14 deletions(-) diff --git a/src/locales/en-US.ts b/src/locales/en-US.ts index ca1da9542e..1d34eacb52 100644 --- a/src/locales/en-US.ts +++ b/src/locales/en-US.ts @@ -17,9 +17,6 @@ import { PluginPageEnUS } from '@/components/PluginPage'; import { ActionBarEnUS } from '@/components/ActionBar'; -import { ConsumerEnUS } from '@/pages/Consumer'; -import { RouteEnUS } from '@/pages/Route'; - import component from './en-US/component'; import globalHeader from './en-US/globalHeader'; import menu from './en-US/menu'; @@ -40,7 +37,5 @@ export default { ...pwa, ...component, ...PluginPageEnUS, - ...ConsumerEnUS, - ...RouteEnUS, ...ActionBarEnUS, }; diff --git a/src/locales/zh-CN.ts b/src/locales/zh-CN.ts index d79d72539a..b8cbae933b 100644 --- a/src/locales/zh-CN.ts +++ b/src/locales/zh-CN.ts @@ -17,9 +17,6 @@ import { PluginPageZhCN } from '@/components/PluginPage'; import { ActionBarZhCN } from '@/components/ActionBar'; -import { ConsumerZhCN } from '@/pages/Consumer'; -import { RouteZhCN } from '@/pages/Route'; - import component from './zh-CN/component'; import globalHeader from './zh-CN/globalHeader'; import menu from './zh-CN/menu'; @@ -40,7 +37,5 @@ export default { ...pwa, ...component, ...PluginPageZhCN, - ...ConsumerZhCN, - ...RouteZhCN, ...ActionBarZhCN, }; diff --git a/src/pages/Consumer/index.ts b/src/pages/Consumer/index.ts index d31de48df1..2944f98194 100644 --- a/src/pages/Consumer/index.ts +++ b/src/pages/Consumer/index.ts @@ -14,5 +14,3 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -export { default as ConsumerZhCN } from './locales/zh-CN'; -export { default as ConsumerEnUS } from './locales/en-US'; diff --git a/src/pages/Route/index.ts b/src/pages/Route/index.ts index b50c753b0d..2944f98194 100644 --- a/src/pages/Route/index.ts +++ b/src/pages/Route/index.ts @@ -14,5 +14,3 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -export { default as RouteZhCN } from './locales/zh-CN'; -export { default as RouteEnUS } from './locales/en-US';