导入
import { initVueI18n } from '@dcloudio/uni-i18n'
import messages from '@/locale/index'
const { t } = initVueI18n(messages)
使用
t('config.request.i001')
本站资源均来自互联网,仅供研究学习,禁止违法使用和商用,产生法律纠纷本站概不负责!如果侵犯了您的权益请与我们联系!
转载请注明出处: 免费源码网-免费的源码资源网站 » UNIAPP_在js文件中使用i18n国际化
发表评论 取消回复