From e17472ef07ed4761ce251de00bf7210f47673345 Mon Sep 17 00:00:00 2001 From: coby2023t <123261899+coby2023t@users.noreply.github.com> Date: Wed, 26 Jul 2023 14:52:04 +0800 Subject: [PATCH] =?UTF-8?q?Add=20=E4=B8=AD=E6=96=87(=E7=B9=81=E9=AB=94)=20?= =?UTF-8?q?("Chinese=20(Traditional)")=20localization=20(#2151)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This will add a "中文(繁體)" option to the "Language" menu in the Arduino IDE preferences, which will cause the strings in the IDE UI to be localized for "Chinese (Traditional)". In addition to the translations for the strings that originate from the Eclipse Theia IDE framework provided by the "Chinese (Traditional) Language Pack for Visual Studio Code" language pack, this will also utilize the translations of the Arduino IDE-specific strings contributed by the community. --- .../src/node/i18n/arduino-localization-contribution.ts | 1 + package.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/arduino-ide-extension/src/node/i18n/arduino-localization-contribution.ts b/arduino-ide-extension/src/node/i18n/arduino-localization-contribution.ts index 33aeeb05..c0165e97 100644 --- a/arduino-ide-extension/src/node/i18n/arduino-localization-contribution.ts +++ b/arduino-ide-extension/src/node/i18n/arduino-localization-contribution.ts @@ -31,6 +31,7 @@ export class ArduinoLocalizationContribution ['tr'], ['uk', 'uk_UA'], ['zh-cn', 'zh'], + ['zh-tw', 'zh-Hant'], ]; async registerLocalizations(registry: LocalizationRegistry): Promise { diff --git a/package.json b/package.json index 2995fd68..464be778 100644 --- a/package.json +++ b/package.json @@ -90,6 +90,7 @@ "vscode-language-pack-ru": "https://open-vsx.org/api/MS-CEINTL/vscode-language-pack-ru/1.70.0/file/MS-CEINTL.vscode-language-pack-ru-1.70.0.vsix", "vscode-language-pack-tr": "https://open-vsx.org/api/MS-CEINTL/vscode-language-pack-tr/1.70.0/file/MS-CEINTL.vscode-language-pack-tr-1.70.0.vsix", "vscode-language-pack-uk": "https://open-vsx.org/api/MS-CEINTL/vscode-language-pack-uk/1.48.3/file/MS-CEINTL.vscode-language-pack-uk-1.48.3.vsix", - "vscode-language-pack-zh-hans": "https://open-vsx.org/api/MS-CEINTL/vscode-language-pack-zh-hans/1.70.0/file/MS-CEINTL.vscode-language-pack-zh-hans-1.70.0.vsix" + "vscode-language-pack-zh-hans": "https://open-vsx.org/api/MS-CEINTL/vscode-language-pack-zh-hans/1.70.0/file/MS-CEINTL.vscode-language-pack-zh-hans-1.70.0.vsix", + "vscode-language-pack-zh-hant": "https://open-vsx.org/api/MS-CEINTL/vscode-language-pack-zh-hant/1.70.0/file/MS-CEINTL.vscode-language-pack-zh-hant-1.70.0.vsix" } }