-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
能否考虑支持下国际化 #3
Comments
这个 比较麻烦哈哈,不过 vant 支持 国际化 等我周末研究研究 |
同求大佬能支持多语言国际化 |
国际化的话,我添加到了这个框架中。但是我没有上传,明天的话我可以尝试搞一下 |
大佬,求跟进 |
@ChenXj6 feature 分支合并本地测试全是报错😂 |
@ChenXj6 它提示找不到 <template>
<i18n-t tag="span" :keypath="getTitle" scope="global" />
</template> 这个组件不需要引入吗 const props = defineProps({
title: {
type: [String, Object] as PropType<string | Title18n | any>,
required: true,
default: '',
},
}) Title18n 这个类型在我本地也显示找不到 |
// /types/global.d.ts declare global声明下
type Title18n = {
[p in LocaleType]: string;
} 昨天忘记一起更新进去了 |
@ChenXj6 这个组件哪里来的? <template>
<i18n-t tag="span" :keypath="getTitle" scope="global" />
</template> |
内置翻译组件
翻译处理可以通过
•使用$t(.)方法
•使用v-t指令
•使用<i18n-t></118n-t>组件
发自我的iPhone
…------------------ 原始邮件 ------------------
发件人: 乡树 ***@***.***>
发送时间: 2024年3月27日 21:10
收件人: xiangshu233/vue3-vant4-mobile ***@***.***>
抄送: 陈小杰 ***@***.***>, Mention ***@***.***>
主题: Re: [xiangshu233/vue3-vant4-mobile] 能否考虑支持下国际化 (Issue #3)
@ChenXj6 这个组件哪里来的?
<template> <i18n-t tag="span" :keypath="getTitle" scope="global" /> </template>
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@ChenXj6 大致上好了还有一些小问题,周末找个时间改改 |
🥳
发自我的iPhone
…------------------ 原始邮件 ------------------
发件人: 乡树 ***@***.***>
发送时间: 2024年3月27日 22:06
收件人: xiangshu233/vue3-vant4-mobile ***@***.***>
抄送: 陈小杰 ***@***.***>, Mention ***@***.***>
主题: Re: [xiangshu233/vue3-vant4-mobile] 能否考虑支持下国际化 (Issue #3)
@ChenXj6 大致上好了还有一些小问题,周末找个时间改改
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
大佬们牛逼,这效率杠杠的 |
能否实现国际化
The text was updated successfully, but these errors were encountered: