2020-08-13 11:47:56 +08:00
|
|
|
import i18n from 'veui/managers/i18n'
|
|
|
|
|
|
|
|
i18n.register(
|
|
|
|
'zh-Hans',
|
|
|
|
{
|
|
|
|
showCode: '显示代码',
|
2021-09-15 19:19:09 +08:00
|
|
|
hideCode: '隐藏代码',
|
2021-11-20 13:22:48 +08:00
|
|
|
expandEditor: '展开实时编辑',
|
2021-09-19 15:34:14 +08:00
|
|
|
playInCodeSandbox: '在 CodeSandbox 中打开',
|
|
|
|
playInStackBlitz: '在 StackBlitz 中打开'
|
2020-08-13 11:47:56 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
ns: 'onedemo'
|
|
|
|
}
|
|
|
|
)
|
|
|
|
|
|
|
|
i18n.register(
|
|
|
|
'en-US',
|
|
|
|
{
|
|
|
|
showCode: 'Show code',
|
2021-09-15 19:19:09 +08:00
|
|
|
hideCode: 'Hide code',
|
2021-11-25 16:14:35 +08:00
|
|
|
expandEditor: 'Expand Live editor',
|
2021-09-19 15:34:14 +08:00
|
|
|
playInCodeSandbox: 'Open in CodeSandbox',
|
|
|
|
playInStackBlitz: 'Open in StackBlitz'
|
2020-08-13 11:47:56 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
ns: 'onedemo'
|
|
|
|
}
|
|
|
|
)
|
|
|
|
|
2021-11-20 13:22:48 +08:00
|
|
|
i18n.register(
|
|
|
|
'zh-Hans',
|
|
|
|
{
|
|
|
|
copyCode: '复制代码',
|
|
|
|
copySuccess: '复制成功!',
|
|
|
|
copyFailed: '复制失败!',
|
|
|
|
reset: '重置',
|
2021-11-25 15:51:03 +08:00
|
|
|
dismiss: '关闭',
|
|
|
|
darkMode: '暗色模式',
|
|
|
|
lightMode: '亮色模式',
|
|
|
|
followSystem: '跟随系统设置'
|
2021-11-20 13:22:48 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
ns: 'onelive'
|
|
|
|
}
|
|
|
|
)
|
|
|
|
|
|
|
|
i18n.register(
|
|
|
|
'en-US',
|
|
|
|
{
|
|
|
|
copyCode: 'Copy code',
|
|
|
|
copySuccess: 'Copy success!',
|
|
|
|
copyFailed: 'Copy failed!',
|
|
|
|
reset: 'Reset',
|
2021-11-25 15:51:03 +08:00
|
|
|
dismiss: 'Dismiss',
|
|
|
|
darkMode: 'Dark mode',
|
|
|
|
lightMode: 'Light mode',
|
|
|
|
followSystem: 'Follow system preferences'
|
2021-11-20 13:22:48 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
ns: 'onelive'
|
|
|
|
}
|
|
|
|
)
|
|
|
|
|
|
|
|
i18n.register(
|
|
|
|
'zh-Hans',
|
|
|
|
{
|
|
|
|
exit: '退出',
|
|
|
|
liveEdit: '实时编辑'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
ns: 'onerepl'
|
|
|
|
}
|
|
|
|
)
|
|
|
|
|
|
|
|
i18n.register(
|
|
|
|
'en-US',
|
|
|
|
{
|
|
|
|
exit: 'Exit',
|
|
|
|
liveEdit: 'Live Edit'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
ns: 'onerepl'
|
|
|
|
}
|
|
|
|
)
|
|
|
|
|
2020-08-13 11:47:56 +08:00
|
|
|
i18n.register(
|
|
|
|
'zh-Hans',
|
|
|
|
{
|
|
|
|
toTop: '回到顶部'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
ns: 'onebacktotop'
|
|
|
|
}
|
|
|
|
)
|
|
|
|
|
|
|
|
i18n.register(
|
|
|
|
'en-US',
|
|
|
|
{
|
|
|
|
toTop: 'Back to top'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
ns: 'onebacktotop'
|
|
|
|
}
|
|
|
|
)
|
2021-10-22 18:51:49 +08:00
|
|
|
|
|
|
|
i18n.register(
|
|
|
|
'zh-Hans',
|
|
|
|
{
|
2021-10-28 15:30:35 +08:00
|
|
|
editOnGitHub: '在 GitHub 上编辑此页',
|
|
|
|
edit: '编辑'
|
2021-10-22 18:51:49 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
ns: 'oneeditlink'
|
|
|
|
}
|
|
|
|
)
|
|
|
|
|
|
|
|
i18n.register(
|
|
|
|
'en-US',
|
|
|
|
{
|
2021-10-28 15:30:35 +08:00
|
|
|
editOnGitHub: 'Edit this page on GitHub',
|
|
|
|
edit: 'Edit'
|
2021-10-22 18:51:49 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
ns: 'oneeditlink'
|
|
|
|
}
|
|
|
|
)
|