【发布时间】:2019-07-22 16:48:04
【问题描述】:
我正在尝试用这个设置语言环境:
Vue.use(Vuetify, {
lang: {
locales: {
'en-US' : {
"dataIterator": {
"rowsPerPageText": "Items per page:",
"rowsPerPageAll": "All",
"pageText": "{0}-{1} of {2}",
"noResultsText": "No matching records found",
"nextPage": "Next page",
"prevPage": "Previous page"
},
"dataTable": {
"rowsPerPageText": "Rows per page:"
},
"noDataText": "No data available"
}
},
current: 'en-US'
}
});
然后我用以下命令更改当前语言环境:
this.$vuetify.lang.current = 'en-US';
但我收到有关 Vue 没有针对当前语言环境的翻译的警告。
有人知道为什么吗?
【问题讨论】:
标签: vue.js vuejs2 vuetify.js