mirror of
https://github.com/Syngnat/GoNavi.git
synced 2026-08-08 07:33:35 +08:00
✨ feat(i18n): 完善多模块多语言适配与发版验证
扩展前后端多语言文案与共享词典。增加多模块 i18n 回归测试与 guard。收口外部 SQL 菜单和弹窗多语言文案。
This commit is contained in:
@@ -20,13 +20,31 @@ export interface TabDisplaySettings {
|
||||
|
||||
export const TAB_DISPLAY_SECONDARY_DEFAULT_KEYS: TabDisplayElementKey[] = ['connection', 'database', 'schema', 'host'];
|
||||
|
||||
export const TAB_DISPLAY_ELEMENT_META: Record<TabDisplayElementKey, { label: string; description: string }> = {
|
||||
connection: { label: '连接名', description: '连接简称或环境名,例如 DEV' },
|
||||
kind: { label: '对象类型', description: 'SQL / TABLE / VIEW 等类型标签' },
|
||||
object: { label: '对象名', description: '表名、查询名、资源名等核心名称' },
|
||||
database: { label: '数据库', description: '当前 DB / catalog 名称' },
|
||||
schema: { label: 'Schema', description: 'schema / owner 前缀' },
|
||||
host: { label: 'Host/IP', description: '连接目标地址摘要' },
|
||||
export const TAB_DISPLAY_ELEMENT_META: Record<TabDisplayElementKey, { labelKey: string; descriptionKey: string }> = {
|
||||
connection: {
|
||||
labelKey: 'app.theme.tab_display.element.connection.label',
|
||||
descriptionKey: 'app.theme.tab_display.element.connection.description',
|
||||
},
|
||||
kind: {
|
||||
labelKey: 'app.theme.tab_display.element.kind.label',
|
||||
descriptionKey: 'app.theme.tab_display.element.kind.description',
|
||||
},
|
||||
object: {
|
||||
labelKey: 'app.theme.tab_display.element.object.label',
|
||||
descriptionKey: 'app.theme.tab_display.element.object.description',
|
||||
},
|
||||
database: {
|
||||
labelKey: 'app.theme.tab_display.element.database.label',
|
||||
descriptionKey: 'app.theme.tab_display.element.database.description',
|
||||
},
|
||||
schema: {
|
||||
labelKey: 'app.theme.tab_display.element.schema.label',
|
||||
descriptionKey: 'app.theme.tab_display.element.schema.description',
|
||||
},
|
||||
host: {
|
||||
labelKey: 'app.theme.tab_display.element.host.label',
|
||||
descriptionKey: 'app.theme.tab_display.element.host.description',
|
||||
},
|
||||
};
|
||||
|
||||
export const DEFAULT_TAB_DISPLAY_SETTINGS: TabDisplaySettings = {
|
||||
|
||||
Reference in New Issue
Block a user