Skip to content

Commit 1d139aa

Browse files
committed
🧪 通过测试和翻译
1 parent d9b0eee commit 1d139aa

6 files changed

Lines changed: 19 additions & 6 deletions

File tree

src/locales/ach-UG/translation.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,5 +418,8 @@
418418
"sync_status": "crwdns8696:0crwdne8696:0",
419419
"search_scripts": "crwdns8698:0crwdne8698:0",
420420
"ext_update_notification": "crwdns8700:0crwdne8700:0",
421-
"ext_update_notification_desc": "crwdns8702:0{{version}}crwdne8702:0"
421+
"ext_update_notification_desc": "crwdns8702:0{{version}}crwdne8702:0",
422+
"watch_file_description": "crwdns8852:0crwdne8852:0",
423+
"watch_file": "crwdns8854:0crwdne8854:0",
424+
"stop_watch_file": "crwdns8856:0crwdne8856:0"
422425
}

src/locales/en-US/translation.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,5 +418,8 @@
418418
"sync_status": "Sync Status",
419419
"search_scripts": "Search script",
420420
"ext_update_notification": "Scriptcat extension updated",
421-
"ext_update_notification_desc": "Current version: {{version}}, please see the update log for details"
421+
"ext_update_notification_desc": "Current version: {{version}}, please see the update log for details",
422+
"watch_file_description": "Monitor file changes and automatically update scripts. When using, please make sure the script file path remains unchanged and the page cannot be closed.",
423+
"watch_file": "Watch file",
424+
"stop_watch_file": "Stop watch"
422425
}

src/locales/ja-JP/translation.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,5 +418,8 @@
418418
"sync_status": "同期状態",
419419
"search_scripts": "検索スクリプト",
420420
"ext_update_notification": "ScriptCat拡張機能が更新されました",
421-
"ext_update_notification_desc": "現在のバージョン: {{version}}、詳細は更新ログをご覧ください"
421+
"ext_update_notification_desc": "現在のバージョン: {{version}}、詳細は更新ログをご覧ください",
422+
"watch_file_description": "ファイルの変更を監視し、スクリプトを自動更新します。使用する際は、スクリプトファイルのパスが変更されず、ページが閉じられないことを確認してください。",
423+
"watch_file": "ファイルの監視",
424+
"stop_watch_file": "監視を停止"
422425
}

src/locales/ru-RU/translation.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,5 +418,8 @@
418418
"sync_status": "Статус синхронизации",
419419
"search_scripts": "Поиск скриптов",
420420
"ext_update_notification": "Расширение ScriptCat обновлено",
421-
"ext_update_notification_desc": "Текущая версия: {{version}}, подробности смотрите в журнале обновлений."
421+
"ext_update_notification_desc": "Текущая версия: {{version}}, подробности смотрите в журнале обновлений.",
422+
"watch_file_description": "Отслеживайте изменения файлов и автоматически обновляйте скрипты. При использовании убедитесь, что путь к файлу скрипта остаётся неизменным, а страница не может быть закрыта.",
423+
"watch_file": "Мониторинг файлов",
424+
"stop_watch_file": "Остановить мониторинг"
422425
}

src/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 3,
33
"name": "__MSG_scriptcat__",
4-
"version": "1.0.0.1200",
4+
"version": "1.1.0.1100",
55
"author": "CodFrm",
66
"description": "__MSG_scriptcat_description__",
77
"options_ui": {

tests/pages/popup/App.test.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { describe, expect, it, beforeEach, vi } from "vitest";
22
import { screen, waitFor } from "@testing-library/react";
33
import { render, setupGlobalMocks } from "@Tests/test-utils";
44
import App from "@App/pages/popup/App";
5+
import { ExtVersion } from "@App/app/const";
56

67
// Mock i18next
78
vi.mock("react-i18next", () => ({
@@ -205,7 +206,7 @@ describe("Popup App Component", () => {
205206
expect(screen.getByText("ScriptCat")).toBeInTheDocument();
206207
expect(screen.getByText("current_page_scripts")).toBeInTheDocument();
207208
expect(screen.getByText("enabled_background_scripts")).toBeInTheDocument();
208-
expect(screen.getByText("v1.0.0-beta.1")).toBeInTheDocument();
209+
expect(screen.getByText("v" + ExtVersion)).toBeInTheDocument();
209210
},
210211
{ timeout: 3000 }
211212
);

0 commit comments

Comments
 (0)