Skip to content

Commit d01a964

Browse files
authored
fix: 修改部分国际化问题 (#1639)
1 parent 05004cb commit d01a964

File tree

5 files changed

+5
-2
lines changed

5 files changed

+5
-2
lines changed

backend/i18n/lang/en.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ ErrTypeOfRedis: "The recovery file type does not match the current persistence m
8282
ErrInUsed: "{{ .detail }} is in use and cannot be deleted"
8383
ErrObjectInUsed: "This object is in use and cannot be deleted"
8484
ErrRepoConn: "The repository information contains illegal characters"
85+
ErrPortRules: "The number of ports does not match, please re-enter!"
8586

8687
#runtime
8788
ErrDirNotFound: "The build folder does not exist! Please check file integrity!"

backend/i18n/lang/zh-Hant.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ ErrTypeOfRedis: "恢復文件類型與當前持久化方式不符,請修改後
8282
ErrInUsed: "{{ .detail }} 正被使用,無法刪除"
8383
ErrObjectInUsed: "該對象正被使用,無法刪除"
8484
ErrRepoConn: "倉庫資訊中存在不合法的字符"
85+
ErrPortRules: "端口數目不匹配,請重新輸入!"
8586

8687
#runtime
8788
ErrDirNotFound: "build 文件夾不存在!請檢查文件完整性!"

backend/i18n/lang/zh.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ ErrTypeOfRedis: "恢复文件类型与当前持久化方式不符,请修改后
8282
ErrInUsed: "{{ .detail }} 正被使用,无法删除"
8383
ErrObjectInUsed: "该对象正被使用,无法删除"
8484
ErrRepoConn: "仓库信息中存在不合法的字符"
85+
ErrPortRules: "端口数目不匹配,请重新输入!"
8586

8687
#runtime
8788
ErrDirNotFound: "build 文件夹不存在!请检查文件完整性!"

frontend/src/views/container/container/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
</div>
120120
<div v-if="row.expand && row.ports.length > 3">
121121
<el-button type="primary" link @click="row.expand = false">
122-
{{ $t('commons.button.shrink') }}
122+
{{ $t('commons.button.collapse') }}
123123
</el-button>
124124
</div>
125125
</div>

frontend/src/views/home/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ function loadUpTime(uptime: number) {
460460
);
461461
}
462462
if (minutes !== 0) {
463-
return minutes + i18n.global.t('home.Minute') + ' ' + seconds + i18n.global.t('commons.units.second');
463+
return minutes + i18n.global.t('commons.units.minute') + ' ' + seconds + i18n.global.t('commons.units.second');
464464
}
465465
return seconds + i18n.global.t('commons.units.second');
466466
}

0 commit comments

Comments
 (0)