Skip to content
This repository was archived by the owner on Sep 9, 2024. It is now read-only.

Commit b964d74

Browse files
wellwindmgechev
authored andcommitted
update zh_TW translation to v15
1 parent 954812c commit b964d74

File tree

1 file changed

+79
-20
lines changed

1 file changed

+79
-20
lines changed

src/app/locales/zh_TW.ts

Lines changed: 79 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
import { LocalizedLabels, LocalizedSteps, registerLocalization } from '../localization';
22
const uiLabels: LocalizedLabels = {
33
'Angular Update Guide': 'Angular 升級指南',
4-
'Select the options matching your project:': '選擇與你的專案符合的選項:',
5-
'Angular Versions': 'Angular 版本',
4+
'Select the options that match your update:': '選擇與你的專案符合的選項:',
5+
'Angular versions': 'Angular 版本',
6+
'Application complexity': '應用程式複雜度',
67
'From': '從',
78
'To': '到',
9+
'Shows information for all Angular developers.': '顯示所有給 Angular 開發者的資訊。',
10+
'Shows information that\'s of interest to more advanced Angular developers.': '顯示對進階 Angular 開發者有興趣的資訊。',
11+
'Shows all the information we have about this update.': '顯示所有關於這次升級的資訊。',
812
'Warning': '注意',
913
'Plans for releases after the current major release are not finalized and may change. These recommendations are based on scheduled deprecations.':
1014
'目前主要版本後的規劃尚未定案,且可能有所變更。這些建議基於已排定的棄用。',
@@ -21,27 +25,23 @@ const uiLabels: LocalizedLabels = {
2125
'Show more specific update information relevant to around 10% of Angular developers.':
2226
'顯示約前10% Angular 開發人員詳細更新資訊。',
2327
'Show all the information we have about the update.': '顯示所有更新資訊。',
24-
'Other Dependencies': '其他相依',
28+
'Other dependencies': '其他相依',
2529
'I use': '使用',
2630
'to combine AngularJS & Angular': '結合 AngularJS 和 Angular',
2731
'Package Manager': '套件管理',
2832
'Show me how to update!': '顯示如何更新!',
29-
'Before Updating': '更新前',
30-
// tslint:disable-next-line: quotemark
31-
"There aren't currently any changes needed before moving between these versions.":
32-
'這兩個版本中間的更新,目前無任何變更。',
33-
'During the Update': '更新時',
34-
// tslint:disable-next-line: quotemark
35-
"There aren't currently any recommendations for moving between these versions.":
36-
'目前沒有關於這兩個版本之間的任何建議。',
37-
'After the Update': '更新後',
38-
// tslint:disable-next-line: quotemark
39-
"There aren't currently any changes needed after moving between these versions.":
40-
'目前這兩個版本之間無需做任何變動。',
41-
'for': '對於',
42-
'Basic Apps': '基本應用程式',
43-
'Medium Apps': '中等應用程式',
44-
'Advanced Apps': '進階應用程式',
33+
'Guide to update your Angular application': 'Angular 應用程式升級指南',
34+
'for': '針對',
35+
'basic applications': '基本應用程式',
36+
'medium applications': '中等應用程式',
37+
'advanced applications': '進階應用程式',
38+
'Before you update': '在您開始更新前',
39+
"You don't need to do anything before moving between these versions.": '在這些版本之間不需要做任何事情。',
40+
'Review these changes and perform the actions to update your application.': '檢視這些變更並執行動作來更新您的應用程式。',
41+
'Update to the new version': '更新到新版本',
42+
"There aren't any recommendations for moving between these versions.": '在這些版本之間沒有任何建議。',
43+
'After you update': '更新後',
44+
"You don't need to do anything after moving between these versions.": '在這些版本之間不需要做任何事情。'
4545
};
4646

4747
const steps: LocalizedSteps = {
@@ -613,7 +613,66 @@ const steps: LocalizedSteps = {
613613
'v14 initialUrl': {
614614
action: '`Router.initialUrl` 只接受 `UrlTree` 以避免指派字串遭到誤用。'
615615
},
616-
616+
'v15 node support': {
617+
action: '在升級應用程式之前確認你正在使用支援的 node.js 版本。Angular v15 支援 node.js 版本:14.20.x、16.13.x 和 18.10.x。<a href="https://angular.io/guide/update-to-version-15#v15-bc-01" alt="關於這項變更的更多資訊">閱讀更多</a>'
618+
},
619+
'v15 ts support': {
620+
action: '在升級應用程式之前確認你正在使用支援的 TypeScript 版本。Angular v15 支援 TypeScript 版本 4.8 或更高版本。<a href="https://angular.io/guide/update-to-version-15#v15-bc-02" alt="關於這項變更的更多資訊">閱讀更多</a>'
621+
},
622+
'v15 ng update': {
623+
action: '在應用程式的專案目錄中,執行 `ng update @angular/core@15 @angular/cli@15` 以將你的應用程式升級到 Angular v15。'
624+
},
625+
'V15 update @angular/material': {
626+
action: '執行 `ng update @angular/material@15` 以更新 Material 元件。'
627+
},
628+
'v15 keyframe': {
629+
action: '在 v15 中,Angular 編譯器會將 CSS 中的 `@keyframes` 加上元件的範圍前綴。這意味著任何依賴 `keyframes` 名稱的 TypeScript 程式碼在 v15 中都不再運作。請更新任何此類實例:以程式碼方式定義 keyframes、使用全域樣式表或更改元件的檢視封裝。<a href="https://angular.io/guide/update-to-version-15#v15-bc-03" alt="關於這項變更的更多資訊">閱讀更多</a>'
630+
},
631+
'v15 no-ivy': {
632+
action: '在應用程式的 `tsconfig.json` 檔案中,移除 `enableIvy`。在 v15 中,Ivy 是唯一的渲染引擎,因此不再需要 `enableIvy`。'
633+
},
634+
'v15 base-decorators': {
635+
action: '確保在有繼承關係且使用建構子和相依注入的基礎類別中使用裝飾器。這樣的基礎類別應該使用 `@Injectable` 或 `@Directive` 來裝飾,否則編譯器會回傳錯誤。<a href="https://angular.io/guide/update-to-version-15#v15-bc-05" alt="關於這項變更的更多資訊">閱讀更多</a>'
636+
},
637+
'v15 setDisabledState': {
638+
action: '在 v15 中,當 `ControlValueAccessor` 附加時,`setDisabledState` 始終會被呼叫。若要選擇性地取消此行為,請使用 `FormsModule.withConfig` 或 `ReactiveFormsModule.withConfig`。<a href="https://angular.io/guide/update-to-version-15#v15-bc-06" alt="關於這項變更的更多資訊">閱讀更多</a>'
639+
},
640+
'v15 canParse': {
641+
action: '使用 `@angular/localize/tools` 中的 `analyze` 來取代使用 `canParse` 的應用程式。在 v15 中,`@angular/localize/tools` 中的所有翻譯解析器都已從 `canParse` 方法中移除。<a href="https://angular.io/guide/update-to-version-15#v15-bc-07" alt="關於這項變更的更多資訊">閱讀更多</a>'
642+
},
643+
'v15 ActivatedRoutSnapshot': {
644+
action: '確保所有 `ActivatedRouteSnapshot` 物件都有 `title` 屬性。在 v15 中,`title` 屬性是 `ActivatedRouteSnapshot` 的必要屬性。<a href="https://angular.io/guide/update-to-version-15#v15-bc-08" alt="關於這項變更的更多資訊">閱讀更多</a>'
645+
},
646+
'v15 RouterOutlet': {
647+
action: '如果你的 `RouterOutlet` 測試失敗,請確保它們不依賴於相對於變更偵測的相對應元件的實例化順序。在 v15 中,`RouterOutlet` 在變更偵測之後實例化元件。<a href="https://angular.io/guide/update-to-version-15#v15-bc-09" alt="關於這項變更的更多資訊">閱讀更多</a>'
648+
},
649+
'v15 relativeLinkResolution': {
650+
action: '在 v15 中,`relativeLinkResolution` 在路由器中無法設定。它用來退出現在已經是標準的早期 bug 修正。 <a href="https://angular.io/guide/update-to-version-15#v15-bc-10" alt="關於這項變更的更多資訊">閱讀更多</a>'
651+
},
652+
'v15 DATE_PIPE_DEFAULT_OPTIONS': {
653+
action: '將 `DATE_PIPE_DEFAULT_TIMEZONE` token 的實例更改為使用 `DATE_PIPE_DEFAULT_OPTIONS` 來配置時區。在 v15 中,`DATE_PIPE_DEFAULT_TIMEZONE` token 已棄用。<a href="https://angular.io/guide/update-to-version-15#v15-dp-01" alt="關於這項變更的更多資訊">閱讀更多</a>'
654+
},
655+
'v15 Injector.get': {
656+
action: '更新使用 `InjectFlags` 參數的 `Injector.get()` 實例,以使用 `InjectOptions` 參數。v15 中棄用 `Injector.get()` 的 `InjectFlags` 參數。<a href="https://angular.io/guide/update-to-version-15#v15-dp-02" alt="關於這項變更的更多資訊">閱讀更多</a>'
657+
},
658+
'v15 TestBed.inject': {
659+
action: '更新使用 `InjectFlags` 參數的 `TestBed.inject()` 實例,以使用 `InjectOptions` 參數。v15 中棄用 `TestBed.inject()` 的 `InjectFlags` 參數。<a href="https://angular.io/guide/update-to-version-15#v15-dp-01" alt="關於這項變更的更多資訊">閱讀更多</a>'
660+
},
661+
'v15 ngModule in providedIn': {
662+
action: '在 v15 中,對 `@Injectable` 和 `InjectionToken` 使用 `providedIn: ngModule` 已棄用。<a href="https://angular.io/guide/update-to-version-15#v15-dp-04" alt="關於這項變更的更多資訊">閱讀更多</a>'
663+
},
664+
'v15 providedIn any': {
665+
action: '在 v15 中,對 `@Injectable` 和 `InjectionToken` 使用 `providedIn: \'any\'` 已棄用。<a href="https://angular.io/guide/update-to-version-15#v15-dp-05" alt="關於這項變更的更多資訊">閱讀更多</a>'
666+
},
667+
'v15 RouterLinkWithHref': {
668+
action: '更新 `RouterLinkWithHref` directive 的實例,以使用 `RouterLink` directive。v15 中棄用 `RouterLinkWithHref` 指令。<a href="https://angular.io/guide/update-to-version-15#v15-dp-06" alt="關於這項變更的更多資訊">閱讀更多</a>'
669+
},
670+
'v15 mat refactor': {
671+
action: '在 Angular Material v15 中,許多元件已基於官方 Material Design Components (MDC) for Web 重構。這個變更影響了許多元件的 DOM 和 CSS 類別。<a href="https://rc.material.angular.io/guide/mdc-migration" alt="關於這項變更的更多資訊">閱讀更多</a>'
672+
},
673+
'v15 visual review': {
674+
action: '在將應用程式更新到 v15 後,用肉眼檢查一下您的應用程式及其互動,以確保一切都正常運作。'
675+
},
617676
};
618677
console.log(`zh-TW registered`);
619678
registerLocalization('zh-TW', steps, uiLabels);

0 commit comments

Comments
 (0)