国际化系统
This commit is contained in:
63
packages/editor-app/src/locales/en.ts
Normal file
63
packages/editor-app/src/locales/en.ts
Normal file
@@ -0,0 +1,63 @@
|
||||
import type { Translations } from '@esengine/editor-core';
|
||||
|
||||
export const en: Translations = {
|
||||
app: {
|
||||
title: 'ECS Framework Editor'
|
||||
},
|
||||
header: {
|
||||
toolbar: {
|
||||
createEntity: 'Create Entity',
|
||||
deleteEntity: 'Delete Entity'
|
||||
},
|
||||
status: {
|
||||
initializing: 'Initializing...',
|
||||
ready: 'Editor Ready',
|
||||
failed: 'Initialization Failed'
|
||||
}
|
||||
},
|
||||
hierarchy: {
|
||||
title: 'Scene Hierarchy',
|
||||
empty: 'No entities',
|
||||
loading: 'Loading...'
|
||||
},
|
||||
inspector: {
|
||||
title: 'Inspector',
|
||||
empty: 'No entity selected',
|
||||
entityInfo: {
|
||||
title: 'Entity Info',
|
||||
id: 'ID',
|
||||
name: 'Name',
|
||||
enabled: 'Enabled',
|
||||
yes: 'Yes',
|
||||
no: 'No'
|
||||
},
|
||||
components: {
|
||||
title: 'Components',
|
||||
empty: 'No components',
|
||||
add: 'Add Component',
|
||||
remove: 'Remove'
|
||||
}
|
||||
},
|
||||
addComponent: {
|
||||
title: 'Add Component',
|
||||
search: 'Search components...',
|
||||
empty: 'No available components',
|
||||
cancel: 'Cancel',
|
||||
add: 'Add Component'
|
||||
},
|
||||
viewport: {
|
||||
title: 'Viewport',
|
||||
placeholder: 'Scene viewport will appear here'
|
||||
},
|
||||
console: {
|
||||
title: 'Console',
|
||||
placeholder: 'Console output will appear here'
|
||||
},
|
||||
footer: {
|
||||
plugins: 'Plugins',
|
||||
entities: 'Entities',
|
||||
core: 'Core',
|
||||
active: 'Active',
|
||||
inactive: 'Inactive'
|
||||
}
|
||||
};
|
||||
2
packages/editor-app/src/locales/index.ts
Normal file
2
packages/editor-app/src/locales/index.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
export { en } from './en';
|
||||
export { zh } from './zh';
|
||||
63
packages/editor-app/src/locales/zh.ts
Normal file
63
packages/editor-app/src/locales/zh.ts
Normal file
@@ -0,0 +1,63 @@
|
||||
import type { Translations } from '@esengine/editor-core';
|
||||
|
||||
export const zh: Translations = {
|
||||
app: {
|
||||
title: 'ECS 框架编辑器'
|
||||
},
|
||||
header: {
|
||||
toolbar: {
|
||||
createEntity: '创建实体',
|
||||
deleteEntity: '删除实体'
|
||||
},
|
||||
status: {
|
||||
initializing: '初始化中...',
|
||||
ready: '编辑器就绪',
|
||||
failed: '初始化失败'
|
||||
}
|
||||
},
|
||||
hierarchy: {
|
||||
title: '场景层级',
|
||||
empty: '无实体',
|
||||
loading: '加载中...'
|
||||
},
|
||||
inspector: {
|
||||
title: '检查器',
|
||||
empty: '未选择实体',
|
||||
entityInfo: {
|
||||
title: '实体信息',
|
||||
id: 'ID',
|
||||
name: '名称',
|
||||
enabled: '启用',
|
||||
yes: '是',
|
||||
no: '否'
|
||||
},
|
||||
components: {
|
||||
title: '组件',
|
||||
empty: '无组件',
|
||||
add: '添加组件',
|
||||
remove: '移除'
|
||||
}
|
||||
},
|
||||
addComponent: {
|
||||
title: '添加组件',
|
||||
search: '搜索组件...',
|
||||
empty: '无可用组件',
|
||||
cancel: '取消',
|
||||
add: '添加组件'
|
||||
},
|
||||
viewport: {
|
||||
title: '视口',
|
||||
placeholder: '场景视口将显示在这里'
|
||||
},
|
||||
console: {
|
||||
title: '控制台',
|
||||
placeholder: '控制台输出将显示在这里'
|
||||
},
|
||||
footer: {
|
||||
plugins: '插件',
|
||||
entities: '实体',
|
||||
core: '核心',
|
||||
active: '活跃',
|
||||
inactive: '未激活'
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user