在VUE I18N中访问特定版本
例如,我想在本地化字符串中访问特定版本的文本。
en : {
title: "Title from en"
},
ja: {
title: "Title from Ja"
}
如果选定的语言环境是 ja ,
我想从英语( en )语言环境中访问标题。
像这样的东西$ t(“标题”,“ en”)
。
I wanted to access a specific version of a text in my localized strings for example.
en : {
title: "Title from en"
},
ja: {
title: "Title from Ja"
}
if the selected locale is ja
I want to access title from the english(en) locale.
something like this $t("title", "en")
.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论