From c074e0c2bca47a16c5df92995ebc76f92fea98af Mon Sep 17 00:00:00 2001 From: liwei Date: Mon, 13 Nov 2023 15:55:02 +0800 Subject: [PATCH] chore: generate locales --- .github/workflows/build.yml | 2 +- ui/flutter/assets/locales/zh_TW.json | 4 ++-- ui/flutter/lib/generated/locales.g.dart | 32 +++++++++++++++---------- 3 files changed, 23 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fdf76cca..f91fa62a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -235,7 +235,7 @@ jobs: mkdir -p build/dist # Build portable - tar -czaf build/dist/Gopeed-$VERSION-linux-amd64-portable.tar.gz build/linux/x64/release/bundle + tar -C build/linux/x64/release/bundle -czaf build/dist/Gopeed-$VERSION-linux-amd64-portable.tar.gz ./ # Build deb package diff --git a/ui/flutter/assets/locales/zh_TW.json b/ui/flutter/assets/locales/zh_TW.json index bb53c4f1..dc14530c 100644 --- a/ui/flutter/assets/locales/zh_TW.json +++ b/ui/flutter/assets/locales/zh_TW.json @@ -66,12 +66,12 @@ "extensionInstallSuccess": "安裝成功", "extensionUpdateSuccess": "更新完成", "extensionDelete": "解除安裝", - "extensionAlreadyLatest": "已是最新版本" + "extensionAlreadyLatest": "已是最新版本", "extensionFind": "取得外掛", "extensionDevelop": "開發外掛", "history": "歷史記錄", "clearHistory": "清空記錄", - "noHistoryFound": "還沒有記錄" + "noHistoryFound": "還沒有記錄", "serviceTitle": "下載服務", "serviceText": "執行中" } \ No newline at end of file diff --git a/ui/flutter/lib/generated/locales.g.dart b/ui/flutter/lib/generated/locales.g.dart index eab8d648..5180c28e 100644 --- a/ui/flutter/lib/generated/locales.g.dart +++ b/ui/flutter/lib/generated/locales.g.dart @@ -445,7 +445,7 @@ class Locales { 'serviceText': '运行中', }; static const zh_TW = { - 'label': '中文 (正體) ', + 'label': '中文 (繁體) ', 'error': '錯誤', 'tip': '提示', 'confirm': '確定', @@ -458,6 +458,7 @@ class Locales { 'donate': '斗內', 'exit': '離開', 'create': '新增任務', + 'directDownload': '直接下載', 'advancedOptions': '進階選項', 'downloadLink': '下載鏈接', 'downloadLinkValid': '請輸入下載鏈接', @@ -473,16 +474,16 @@ class Locales { 'general': '通用設定', 'downloadDir': '下載目録', 'downloadDirValid': '請選擇下載目録', - 'connections': '同時連接數量', + 'connections': '同時連接數', 'maxRunning': '最大同時下載數', 'items': '@count 項', - 'subscribeTracker': '已訂閲的 Tracker', + 'subscribeTracker': '已訂閲的追蹤者列表', 'subscribeFail': '訂閲失敗', 'update': '更新', - 'updateDaily': '每日自動更新', + 'updateDaily': '每天自動更新', 'lastUpdate': '上次更新時間: @time', - 'addTracker': '增加新的 Tracker', - 'addTrackerHit': '請輸入 Tracker 服務器地址,每行一條', + 'addTracker': '增加新的追蹤者', + 'addTrackerHit': '請輸入追蹤者服務器地址,每行一條', 'ui': '介面', 'theme': '佈景主題', 'themeSystem': '跟隨系統', @@ -492,12 +493,12 @@ class Locales { 'about': '關於', 'homepage': '訪問主頁', 'version': '版本資訊', - 'protocol': '通訊協定', + 'protocol': '端口設定', 'port': '端口', - 'apiToken': '接口 Token', - 'notSet': '尚未設定', + 'apiToken': '接口秘鑰', + 'notSet': '未設定', 'set': '已設定', - 'effectAfterRestart': '該選項將在重新啓動軟體後生效', + 'effectAfterRestart': '重啟後生效', 'startAll': '全部開始', 'pauseAll': '全部暫停', 'deleteTask': '刪除任務', @@ -507,10 +508,17 @@ class Locales { 'newVersionUpdate': '立刻更新', 'newVersionLater': '稍後更新', 'extensions': '外掛程序', - 'extensionInstallUrl': '安裝鏈接', - 'extensionInstallSuccess': '安裝完成', + 'extensionInstallUrl': '安裝URL', + 'extensionInstallSuccess': '安裝成功', 'extensionUpdateSuccess': '更新完成', 'extensionDelete': '解除安裝', 'extensionAlreadyLatest': '已是最新版本', + 'extensionFind': '取得外掛', + 'extensionDevelop': '開發外掛', + 'history': '歷史記錄', + 'clearHistory': '清空記錄', + 'noHistoryFound': '還沒有記錄', + 'serviceTitle': '下載服務', + 'serviceText': '執行中', }; }