| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- // 导入通用模块
- import commonZhCN from './common/zh_CN'
- import commonEnUS from './common/en_US'
- // 导入页面模块
- import loginZhCN from './pages/login/zh_CN'
- import loginEnUS from './pages/login/en_US'
- // 导入pages-content模块
- import myZhCN from './pages-content/my/zh_CN'
- import myEnUS from './pages-content/my/en_US'
- // 导入组件模块
- import languageSwitcherZhCN from './components/languageSwitcher/zh_CN'
- import languageSwitcherEnUS from './components/languageSwitcher/en_US'
- // 按语言组织翻译数据
- export const messages = {
- 'zh-CN': {
- common: commonZhCN,
- login: loginZhCN,
- pagesContent: {
- my: myZhCN
- },
- components: {
- languageSwitcher: languageSwitcherZhCN
- }
- },
- 'en-US': {
- common: commonEnUS,
- login: loginEnUS,
- pagesContent: {
- my: myEnUS
- },
- components: {
- languageSwitcher: languageSwitcherEnUS
- }
- }
- }
- export const localeList = [
- {
- label: '简体中文',
- value: 'zh-CN'
- },
- {
- label: 'English',
- value: 'en-US'
- }
- ]
- // 默认语言
- export const defaultLocale = 'zh-CN'
|