feat: tabbar 多语言

This commit is contained in:
菲鸽 2024-05-12 10:37:44 +08:00
parent 4c968a7eb1
commit 7dc8f5b438
4 changed files with 8 additions and 4 deletions

View File

@ -28,13 +28,13 @@ export default defineUniPages({
iconPath: 'static/tabbar/home.png',
selectedIconPath: 'static/tabbar/homeHL.png',
pagePath: 'pages/index/index',
text: '首页',
text: '%tabbar.home%',
},
{
iconPath: 'static/tabbar/example.png',
selectedIconPath: 'static/tabbar/exampleHL.png',
pagePath: 'pages/index/about',
text: '关于',
text: '%tabbar.about%',
},
],
},

View File

@ -1,4 +1,6 @@
{
"tabbar.home": "Home",
"tabbar.about": "About",
"weight": "{heavy}KG",
"weight2": "{0}KG",
"introduction": "I am {name},height:{detail.height},weight:{detail.weight}",

View File

@ -1,4 +1,6 @@
{
"tabbar.home": "Home",
"tabbar.about": "关于",
"app.name": "中文标题",
"weight": "{heavy}公斤",
"introduction": "我是 {name},身高:{detail.height},体重:{detail.weight}",

View File

@ -26,13 +26,13 @@
"iconPath": "static/tabbar/home.png",
"selectedIconPath": "static/tabbar/homeHL.png",
"pagePath": "pages/index/index",
"text": "首页"
"text": "%tabbar.home%"
},
{
"iconPath": "static/tabbar/example.png",
"selectedIconPath": "static/tabbar/exampleHL.png",
"pagePath": "pages/index/about",
"text": "关于"
"text": "%tabbar.about%"
}
]
},