From b64406bf6129686be696eb6dbfc4c09e03c26bb9 Mon Sep 17 00:00:00 2001 From: loong10k <20489781+loong10k@users.noreply.github.com> Date: Sun, 18 Oct 2026 21:18:32 +0800 Subject: [PATCH] feat(dsh): add localized plugin title and description --- dsh/locale/en.json | 6 ++++++ dsh/locale/zh.json | 6 ++++++ dsh/package.json | 6 ++++-- locale/en.json | 6 ++++++ locale/zh.json | 6 ++++++ package.json | 3 ++- 6 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 dsh/locale/en.json create mode 100644 dsh/locale/zh.json create mode 100644 locale/en.json create mode 100644 locale/zh.json diff --git a/dsh/locale/en.json b/dsh/locale/en.json new file mode 100644 index 0000000..6b65c0f --- /dev/null +++ b/dsh/locale/en.json @@ -0,0 +1,6 @@ +{ + "meta": { + "title": "CodeGuard", + "description": "Evidence-backed code checks and Git content gates for AI assistants, with Maven/Gradle module impact analysis. Save hooks provide feedback; unverified checks are explicit." + } +} diff --git a/dsh/locale/zh.json b/dsh/locale/zh.json new file mode 100644 index 0000000..6b65c0f --- /dev/null +++ b/dsh/locale/zh.json @@ -0,0 +1,6 @@ +{ + "meta": { + "title": "CodeGuard", + "description": "Evidence-backed code checks and Git content gates for AI assistants, with Maven/Gradle module impact analysis. Save hooks provide feedback; unverified checks are explicit." + } +} diff --git a/dsh/package.json b/dsh/package.json index 3e10a19..c31f3c5 100644 --- a/dsh/package.json +++ b/dsh/package.json @@ -8,14 +8,16 @@ "exports": { ".": "./lib/index.js", "./package.json": "./package.json", - "./cordis.patch.yml": "./cordis.patch.yml" + "./cordis.patch.yml": "./cordis.patch.yml", + "./locale/*": "./locale/*" }, "files": [ "cordis.patch.yml", "lib/index.js", "icon.svg", "icon.png", - "README.md" + "README.md", + "locale" ], "license": "Apache-2.0", "keywords": [ diff --git a/locale/en.json b/locale/en.json new file mode 100644 index 0000000..6b65c0f --- /dev/null +++ b/locale/en.json @@ -0,0 +1,6 @@ +{ + "meta": { + "title": "CodeGuard", + "description": "Evidence-backed code checks and Git content gates for AI assistants, with Maven/Gradle module impact analysis. Save hooks provide feedback; unverified checks are explicit." + } +} diff --git a/locale/zh.json b/locale/zh.json new file mode 100644 index 0000000..6b65c0f --- /dev/null +++ b/locale/zh.json @@ -0,0 +1,6 @@ +{ + "meta": { + "title": "CodeGuard", + "description": "Evidence-backed code checks and Git content gates for AI assistants, with Maven/Gradle module impact analysis. Save hooks provide feedback; unverified checks are explicit." + } +} diff --git a/package.json b/package.json index 84d2175..80e97a3 100644 --- a/package.json +++ b/package.json @@ -8,5 +8,6 @@ "bundle": { "patch": "./cordis.patch.yml" } - } + }, + "icon": "./dsh/icon.png" }