feat: tabbar 多语言
This commit is contained in:
parent
4c968a7eb1
commit
7dc8f5b438
@ -28,13 +28,13 @@ export default defineUniPages({
|
|||||||
iconPath: 'static/tabbar/home.png',
|
iconPath: 'static/tabbar/home.png',
|
||||||
selectedIconPath: 'static/tabbar/homeHL.png',
|
selectedIconPath: 'static/tabbar/homeHL.png',
|
||||||
pagePath: 'pages/index/index',
|
pagePath: 'pages/index/index',
|
||||||
text: '首页',
|
text: '%tabbar.home%',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
iconPath: 'static/tabbar/example.png',
|
iconPath: 'static/tabbar/example.png',
|
||||||
selectedIconPath: 'static/tabbar/exampleHL.png',
|
selectedIconPath: 'static/tabbar/exampleHL.png',
|
||||||
pagePath: 'pages/index/about',
|
pagePath: 'pages/index/about',
|
||||||
text: '关于',
|
text: '%tabbar.about%',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
{
|
{
|
||||||
|
"tabbar.home": "Home",
|
||||||
|
"tabbar.about": "About",
|
||||||
"weight": "{heavy}KG",
|
"weight": "{heavy}KG",
|
||||||
"weight2": "{0}KG",
|
"weight2": "{0}KG",
|
||||||
"introduction": "I am {name},height:{detail.height},weight:{detail.weight}",
|
"introduction": "I am {name},height:{detail.height},weight:{detail.weight}",
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
{
|
{
|
||||||
|
"tabbar.home": "Home",
|
||||||
|
"tabbar.about": "关于",
|
||||||
"app.name": "中文标题",
|
"app.name": "中文标题",
|
||||||
"weight": "{heavy}公斤",
|
"weight": "{heavy}公斤",
|
||||||
"introduction": "我是 {name},身高:{detail.height},体重:{detail.weight}",
|
"introduction": "我是 {name},身高:{detail.height},体重:{detail.weight}",
|
||||||
|
@ -26,13 +26,13 @@
|
|||||||
"iconPath": "static/tabbar/home.png",
|
"iconPath": "static/tabbar/home.png",
|
||||||
"selectedIconPath": "static/tabbar/homeHL.png",
|
"selectedIconPath": "static/tabbar/homeHL.png",
|
||||||
"pagePath": "pages/index/index",
|
"pagePath": "pages/index/index",
|
||||||
"text": "首页"
|
"text": "%tabbar.home%"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"iconPath": "static/tabbar/example.png",
|
"iconPath": "static/tabbar/example.png",
|
||||||
"selectedIconPath": "static/tabbar/exampleHL.png",
|
"selectedIconPath": "static/tabbar/exampleHL.png",
|
||||||
"pagePath": "pages/index/about",
|
"pagePath": "pages/index/about",
|
||||||
"text": "关于"
|
"text": "%tabbar.about%"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user