feat: i18n
This commit is contained in:
@@ -6,8 +6,8 @@ import { translate as t } from '@/locales/index'
|
||||
export const testI18n = () => {
|
||||
console.log(t('app.name'))
|
||||
// 下面同样生效
|
||||
// uni.showModal({
|
||||
// title: 'i18n 测试',
|
||||
// content: t('app.name'),
|
||||
// })
|
||||
uni.showModal({
|
||||
title: 'i18n 测试',
|
||||
content: t('app.name'),
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user