Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add zh hant language #13290

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cypress/e2e/tests/pages/user-menu/preferences.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ describe('User can update their preferences', () => {
*/
const languages = {
'[lang="en-us"]': 1,
'[lang="zh-hans"]': 2
'[lang="zh-hans"]': 2,
'[lang="zh-hant"]': 3
};

prefPage.goTo();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@
"lodash.debounce": "4.0.8",
"nodemon": "2.0.22",
"nyc": "15.1.0",
"start-server-and-test": "2.0.10",
"start-server-and-test": "1.13.1",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how come this was needed?

"style-loader": "3.3.2",
"ts-jest": "27.1.5",
"typescript": "5.6.3",
Expand Down
42 changes: 20 additions & 22 deletions pkg/aks/components/AksNodePool.vue
Original file line number Diff line number Diff line change
Expand Up @@ -387,28 +387,26 @@ export default defineComponent({
v-if="(taints && taints.length) || isView"
class="taints"
>
<thead>
<tr>
<th>
<label class="text-label">
{{ t('aks.nodePools.taints.key') }}
<span class="text-error">*</span>
</label>
</th>
<th>
<label class="text-label">
{{ t('aks.nodePools.taints.value') }}
<span class="text-error">*</span>
</label>
</th>
<th>
<label class="text-label">
{{ t('aks.nodePools.taints.effect') }}
</label>
</th>
<th />
</tr>
</thead>
<tr>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it looks like this and a few other similar changes below are reverts of recent changes

<th>
<label class="text-label">
{{ t('aks.nodePools.taints.key') }}
<span class="text-error">*</span>
</label>
</th>
<th>
<label class="text-label">
{{ t('aks.nodePools.taints.value') }}
<span class="text-error">*</span>
</label>
</th>
<th>
<label class="text-label">
{{ t('aks.nodePools.taints.effect') }}
</label>
</th>
<th />
</tr>
<template v-if="taints && taints.length">
<Taint
v-for="(keyedTaint, i) in taints"
Expand Down
11 changes: 11 additions & 0 deletions pkg/harvester-manager/l10n/zh-hant.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
harvesterManager:
manage: 管理
cluster:
label: Harvester 集群
none: 不存在 Harvester 集群
learnMore: 訪問 <a target="_blank" href="https://harvesterhci.io/" rel="noopener noreferrer nofollow">Harvester 網站</a> 或閱讀 <a target="_blank" href="https://docs.harvesterhci.io/" rel="noopener noreferrer nofollow">Harvester 官方文檔</a>,以瞭解更多關於 Harvester 的信息。
description: Harvester 是一個採用企業級開源技術,包括Kubernetes、Kubevirt和Longhorn,為裸金屬服務器打造的現代超融合基礎設施(HCI)解決方案。
plugins:
loadError: 加載 Harvester 插件時出錯
rke:
templateError: 模版格式不正確
1 change: 1 addition & 0 deletions shell/assets/translations/en-us.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ locale:
menu: Locale selector menu
en-us: English
zh-hans: 简体中文
zh-hant: 繁體中文
none: (None)

nav:
Expand Down
1 change: 1 addition & 0 deletions shell/assets/translations/zh-hans.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ generic:
locale:
en-us: English
zh-hans: 简体中文
zh-hant: 繁體中文
none: (None)

nav:
Expand Down
Loading