feat: publicize doc implemetation
This commit is contained in:
13
one/build/i18n.js
Normal file
13
one/build/i18n.js
Normal file
@@ -0,0 +1,13 @@
|
||||
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('|')})\\/`)
|
||||
Reference in New Issue
Block a user