feat: publicize doc implemetation

This commit is contained in:
Justineo
2020-08-13 11:47:56 +08:00
parent 55b9b044f2
commit 1e5fcff6ad
372 changed files with 50636 additions and 0 deletions

13
one/build/i18n.js Normal file
View 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('|')})\\/`)