feat(i18n): 添加构件详情和显示全部的国际化文本

This commit is contained in:
yuding
2026-01-28 12:02:14 +08:00
parent 89789e003b
commit a61c7f45d1
3 changed files with 17 additions and 2 deletions

View File

@@ -34,6 +34,8 @@ export const enUS: TranslationDictionary = {
menu: { menu: {
info: 'Info', info: 'Info',
home: 'Home', home: 'Home',
componentDetail: 'Component Detail',
showAll: 'Show All'
}, },
tree: { tree: {
searchPlaceholder: 'Please enter content to search', searchPlaceholder: 'Please enter content to search',
@@ -56,6 +58,9 @@ export const enUS: TranslationDictionary = {
props: 'Properties', props: 'Properties',
material: 'Material' material: 'Material'
} }
},
componentDetail: {
title: 'Component Detail'
} }
}, },
measure: { measure: {

View File

@@ -40,7 +40,10 @@ export interface TranslationDictionary {
props: string; props: string;
material: string; material: string;
} }
} };
componentDetail: {
title: string;
};
}; };
dialog: { dialog: {
testTitle: string; testTitle: string;
@@ -49,6 +52,8 @@ export interface TranslationDictionary {
menu: { menu: {
info: string; info: string;
home: string; home: string;
componentDetail: string;
showAll: string;
}; };
tree: { tree: {
searchPlaceholder: string; searchPlaceholder: string;

View File

@@ -33,7 +33,9 @@ export const zhCN: TranslationDictionary = {
}, },
menu: { menu: {
info: '信息', info: '信息',
home: '首页' home: '首页',
componentDetail: '构件详情',
showAll: '显示全部'
}, },
tree: { tree: {
searchPlaceholder: '请输入要搜索的内容', searchPlaceholder: '请输入要搜索的内容',
@@ -56,6 +58,9 @@ export const zhCN: TranslationDictionary = {
props: '属性', props: '属性',
material: '材质' material: '材质'
} }
},
componentDetail: {
title: '构件详情'
} }
}, },
measure: { measure: {