参考教程
https://www.jianshu.com/p/caff906525aa
https://ask.dcloud.net.cn/article/35872
https://blog.csdn.net/gochan_tao/article/details/96166555
引入文件
index.js
LANG从配置文件读取,不使用自动识别
main.js
computed: {
i18n () {
return this.$t('index')
}
},
// 设置页面标题
onShow(){
uni.setNavigationBarTitle({
title: this.$t('index.dianjixiugaimima')
})
},
//标签
<view>{{ i18n.daifukuan }}</view>
{{active ? i18n.nowzhuan : i18n.nowrecharge }}
//输入框placeholder属性
:placeholder="$t('index.confirmnewpwd')"
//js替换
this.$util.Tips({
title: that.$t('index.success')
});
that.$t('index.end'),
this.$t('index.end'),
原文地址:https://blog.csdn.net/weixin_44506318/article/details/110293151
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。