docs_vue2/plugins/l10n.js
2021-09-19 15:34:14 +08:00

48 lines
663 B
JavaScript

import i18n from 'veui/managers/i18n'
i18n.register(
'zh-Hans',
{
showCode: '显示代码',
hideCode: '隐藏代码',
playInCodeSandbox: '在 CodeSandbox 中打开',
playInStackBlitz: '在 StackBlitz 中打开'
},
{
ns: 'onedemo'
}
)
i18n.register(
'en-US',
{
showCode: 'Show code',
hideCode: 'Hide code',
playInCodeSandbox: 'Open in CodeSandbox',
playInStackBlitz: 'Open in StackBlitz'
},
{
ns: 'onedemo'
}
)
i18n.register(
'zh-Hans',
{
toTop: '回到顶部'
},
{
ns: 'onebacktotop'
}
)
i18n.register(
'en-US',
{
toTop: 'Back to top'
},
{
ns: 'onebacktotop'
}
)