From b2866c5da86d71dee1e283f2dd485c6a02b46b0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=A1=E8=89=B2?= Date: Fri, 22 Nov 2024 14:30:46 +0800 Subject: [PATCH] feat: add zh-tw language (#76) --- .vscode/launch.json | 11 +++---- .vscode/tasks.json | 64 ------------------------------------- l10n/bundle.l10n.zh-tw.json | 13 ++++++++ 3 files changed, 18 insertions(+), 70 deletions(-) delete mode 100644 .vscode/tasks.json create mode 100644 l10n/bundle.l10n.zh-tw.json diff --git a/.vscode/launch.json b/.vscode/launch.json index 03c8b49..670495d 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -10,12 +10,11 @@ "type": "extensionHost", "request": "launch", "args": [ - "--extensionDevelopmentPath=${workspaceFolder}/out" + "--extensionDevelopmentPath=${workspaceFolder}" ], "outFiles": [ - "${workspaceFolder}/out/**/*.js" - ], - "preLaunchTask": "${defaultBuildTask}" + "${workspaceFolder}/**/*.js" + ] }, { "name": "Run Web Extension", @@ -23,11 +22,11 @@ "debugWebWorkerHost": true, "request": "launch", "args": [ - "--extensionDevelopmentPath=${workspaceFolder}/out", + "--extensionDevelopmentPath=${workspaceFolder}", "--extensionDevelopmentKind=web" ], "outFiles": [ - "${workspaceFolder}/out/**/*.js" + "${workspaceFolder}/**/*.js" ] } ] diff --git a/.vscode/tasks.json b/.vscode/tasks.json deleted file mode 100644 index 19c22e8..0000000 --- a/.vscode/tasks.json +++ /dev/null @@ -1,64 +0,0 @@ -// See https://go.microsoft.com/fwlink/?LinkId=733558 -// for the documentation about the tasks.json format -{ - "version": "2.0.0", - "tasks": [ - { - "label": "watch", - "dependsOn": [ - "npm: watch:tsc", - "npm: watch:esbuild" - ], - "presentation": { - "reveal": "never" - }, - "group": { - "kind": "build", - "isDefault": true - } - }, - { - "type": "npm", - "script": "watch:esbuild", - "group": "build", - "problemMatcher": "$esbuild-watch", - "isBackground": true, - "label": "npm: watch:esbuild", - "presentation": { - "group": "watch", - "reveal": "never" - } - }, - { - "type": "npm", - "script": "watch:tsc", - "group": "build", - "problemMatcher": "$tsc-watch", - "isBackground": true, - "label": "npm: watch:tsc", - "presentation": { - "group": "watch", - "reveal": "never" - } - }, - { - "type": "npm", - "script": "watch-tests", - "problemMatcher": "$tsc-watch", - "isBackground": true, - "presentation": { - "reveal": "never", - "group": "watchers" - }, - "group": "build" - }, - { - "label": "tasks: watch-tests", - "dependsOn": [ - "npm: watch", - "npm: watch-tests" - ], - "problemMatcher": [] - } - ] -} \ No newline at end of file diff --git a/l10n/bundle.l10n.zh-tw.json b/l10n/bundle.l10n.zh-tw.json new file mode 100644 index 0000000..de6741d --- /dev/null +++ b/l10n/bundle.l10n.zh-tw.json @@ -0,0 +1,13 @@ +{ + "Convert `{px}px` to `{value}` (the current benchmark font-size is `{rootFontSize}px`": "將 `{px}px` 轉換為 `{value}` (當前基準字號為 `{rootFontSize}px`", + "Converted from `{rem}rem` according to the benchmark font-size is `{rootFontSize}px`": "由 `{rem}rem` 根據基準字號 `{rootFontSize}px` 轉換而來", + "Convert {px}rem to {value} (the current benchmark font-size is {rootFontSize}px": "將 `{px}rem` 轉換為 `{value}` (當前基準字號為 `{rootFontSize}px`", + "Converted from `{px}px` according to the benchmark font-size is `{rootFontSize}px`": "由 `{px}px` 根據基準字號 `{rootFontSize}px` 轉換而來", + "Convert `{px}px` to `{vw}` (current device width `{vwDesign}px`, base font size is `{rootFontSize}px`)": "將 `{px}px` 轉換為 `{vw}` (當前設備寬度 `{vwDesign}px`, 基準字號為 `{rootFontSize}px`)", + "Convert `{px}px` to `{vw}vw` (current device width `{vwDesign}px`, base font size is `{rootFontSize}px`)": "由 `{px}px` 轉換為 `{vw}vm` (當前設備寬度 `{vwDesign}px`, 基準字號為 `{rootFontSize}px`)", + "Convert `{vw}vw` to `{px}` (current device width `{vwDesign}px`, base font size is `{rootFontSize}px`)": "將 `{vw}vw` 轉換為 `{px}` (當前設備寬度 `{vwDesign}px`, 基準字號為 `{rootFontSize}px`)", + "Converted from `{px}px` (current device width `{vwDesign}px`, base font size is `{rootFontSize}px`)": "由 `{px}px` 轉換而來(當前設備寬度 `{vwDesign}px`, 基準字號為 `{rootFontSize}px`)", + "**WXSS miniprogram style** Convert `{px}px` to `{rpx}` (the current device width is `{wxssDeviceWidth}px` and screen width is `{wxssScreenWidth}px`)": "**WXSS小程序樣式** 將 `{px}px` 轉換為 `{rpx}` (當前設備寬度 `{wxssDeviceWidth}px`、基準屏幕 `{wxssScreenWidth}px`", + "**WXSS miniprogram style** Convert `{rpx}rpx` to `{px}` (The current device width is `{wxssDeviceWidth}px` and screen width is `{wxssScreenWidth}px`)": "**WXSS小程序樣式** 將 `{rpx}rpx` 轉換為 `{px}` (當前設備寬度 `{wxssDeviceWidth}px`、基準屏幕 `{wxssScreenWidth}px`", + "**WXSS miniprogram style** Converted from `{px}px` (The current device width is `{wxssDeviceWidth}px` and screen width is `{wxssScreenWidth}px`)": "**WXSS小程序樣式** 由 `{px}px` 轉換而來(當前設備寬度 `{wxssDeviceWidth}px`、基準屏幕 `{wxssScreenWidth}px`)" +}