Skip to content

Commit

Permalink
feat(i18n): Use auto load i18n (#332) (#371)
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxiran authored Aug 11, 2020
1 parent 4fd0ce7 commit 975674c
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 14 deletions.
5 changes: 0 additions & 5 deletions src/locales/en-US.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -40,7 +37,5 @@ export default {
...pwa,
...component,
...PluginPageEnUS,
...ConsumerEnUS,
...RouteEnUS,
...ActionBarEnUS,
};
5 changes: 0 additions & 5 deletions src/locales/zh-CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -40,7 +37,5 @@ export default {
...pwa,
...component,
...PluginPageZhCN,
...ConsumerZhCN,
...RouteZhCN,
...ActionBarZhCN,
};
2 changes: 0 additions & 2 deletions src/pages/Consumer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
2 changes: 0 additions & 2 deletions src/pages/Route/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

0 comments on commit 975674c

Please sign in to comment.