docs_vue2/one/build/i18n.js

14 lines
308 B
JavaScript
Raw Normal View History

2020-08-13 11:47:56 +08:00
export const DEFAULT_LOCALE = 'zh-Hans'
export const LOCALES = [
{
code: DEFAULT_LOCALE,
label: '简体中文'
},
{
code: 'en-US',
label: 'English (US)'
}
]
export const LOCALE_CODES = LOCALES.map(l => l.code)
export const RE_LOCALE = new RegExp(`^\\/(${LOCALE_CODES.join('|')})\\/`)