Skip to content

Commit

Permalink
fix(frontend): 年度大版本测试v1.5.0前端问题修复 TencentBlueKing#6958
Browse files Browse the repository at this point in the history
  • Loading branch information
jinquantianxia committed Sep 23, 2024
1 parent bd33869 commit 71802dd
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
18 changes: 9 additions & 9 deletions dbm-ui/frontend/src/components/locale-switch/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@
</div>
<template #content>
<div class="local-switch-menu">
<div
class="item"
:class="{ active: $i18n.locale === 'zh-cn' }"
@click="handleSwitchLocale('zh-cn')">
<DbIcon
class="mr-4"
type="cn" />
中文
</div>
<div
class="item"
:class="{
Expand All @@ -35,15 +44,6 @@
type="en" />
English
</div>
<div
class="item"
:class="{ active: $i18n.locale === 'zh-cn' }"
@click="handleSwitchLocale('zh-cn')">
<DbIcon
class="mr-4"
type="cn" />
中文
</div>
</div>
</template>
</BkPopover>
Expand Down
3 changes: 2 additions & 1 deletion dbm-ui/frontend/src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,7 @@
"清空": "Cleanup",
"角色": "Role",
"解析并添加": "Parse and add",
"请输入IP_Port_如_1_1_1_1_10000_多个可使用换行_空格或_分隔": "Please enter IP:Port, such as (127.0.0.1:10000)\nMultiples can be separated by newlines, spaces or ;, |",
"请输入IP_Port_如_1_1_1_1_10000_多个可使用换行_空格或_分隔": "Please enter IP:Port, such as (127.0.0.1:10000)\nMultiples can be separated by newlines, spaces or ;,|",
"请输入实例": "Please enter an instance",
"请选择实例": "Please select an instance",
"Agent异常无法使用": "Agent is abnormally",
Expand Down Expand Up @@ -1595,5 +1595,6 @@
"规格名称不能为空": "Specification name cannot be empty",
"主机资源不足_等待管理员users补货_补货完成后可以前往place重试": "Host resources are insufficient. Wait for the administrator ({users}) to replenish the inventory. After the replenishment is complete, you can go to \"{place}\" and try again",
"可用主机数": "Number of available hosts",
"版本日志": "Release Notes",
"这行勿动!新增翻译请在上一行添加!": ""
}
4 changes: 4 additions & 0 deletions dbm-ui/frontend/src/locales/zh-cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -3526,5 +3526,9 @@
"必须要能除尽总分片数": "必须要能除尽总分片数",
"变更机器组数": "变更机器组数",
"DB名称支持通配符_如Data_区分大小写_多个使用英文逗号_分号或换行分隔": "DB名称支持通配符_如Data_区分大小写_多个使用英文逗号_分号或换行分隔",
"库表输入说明": "库表输入说明",
"不允许输入系统库和特殊库,如mysql、sys 等": "不允许输入系统库和特殊库,如mysql、sys 等",
"支持 %(指代任意长度字符串), ?(指代单个字符串), *(指代全部)三个通配符": "支持 %(指代任意长度字符串), ?(指代单个字符串), *(指代全部)三个通配符",
"包含通配符时, 每一单元格只允许输入单个对象。% ? 不能独立使用, * 只能单独使用": "包含通配符时, 每一单元格只允许输入单个对象。% ? 不能独立使用, * 只能单独使用",
"这行勿动!新增翻译请在上一行添加!": ""
}

0 comments on commit 71802dd

Please sign in to comment.