diff --git a/pages.config.ts b/pages.config.ts index 96d65b7..68f2e60 100644 --- a/pages.config.ts +++ b/pages.config.ts @@ -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%', }, ], }, diff --git a/src/locale/en.json b/src/locale/en.json index 346638c..040e03c 100644 --- a/src/locale/en.json +++ b/src/locale/en.json @@ -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}", diff --git a/src/locale/zh-Hans.json b/src/locale/zh-Hans.json index 5fa03f1..e141c91 100644 --- a/src/locale/zh-Hans.json +++ b/src/locale/zh-Hans.json @@ -1,4 +1,6 @@ { + "tabbar.home": "Home", + "tabbar.about": "关于", "app.name": "中文标题", "weight": "{heavy}公斤", "introduction": "我是 {name},身高:{detail.height},体重:{detail.weight}", diff --git a/src/pages.json b/src/pages.json index 1a08944..5bcd6be 100644 --- a/src/pages.json +++ b/src/pages.json @@ -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%" } ] },