chore: update demo i18n (#9342)

This commit is contained in:
neverland
2021-08-27 10:24:37 +08:00
committed by GitHub
parent 253e4a7988
commit 125f77a48b
83 changed files with 167 additions and 268 deletions
+3 -5
View File
@@ -2,13 +2,12 @@
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
const i18n = {
const t = useTranslate({
'zh-CN': {
showAvatar: '显示头像',
showChildren: '显示子组件',
title: '关于 Vant',
desc:
'Vant 是一套轻量、可靠的移动端 Vue 组件库,提供了丰富的基础组件和业务组件,帮助开发者快速搭建移动应用。',
desc: 'Vant 是一套轻量、可靠的移动端 Vue 组件库,提供了丰富的基础组件和业务组件,帮助开发者快速搭建移动应用。',
},
'en-US': {
showAvatar: 'Show Avatar',
@@ -16,9 +15,8 @@ const i18n = {
title: 'About Vant',
desc: 'Vant is a set of Mobile UI Components built on Vue.',
},
};
});
const t = useTranslate(i18n);
const show = ref(false);
</script>