Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.
ci: allow CJK in the desktop shell's translation catalog
Kilyn8d4c1d29c184
diff --git a/AGENTS.md b/AGENTS.mdindex a2ab2023..31b12145 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -125,8 +125,9 @@ Memory, and Voice services.- The repository is English-only: docs, code, comments, logs, user-facingstrings, prompts, Skills, tests, fixtures, and benchmark data.`make check-repository-gate` rejects CJK ideographs in changed files. The- one exception is the client's translation catalogs under- `apps/web/src/i18n/locales/`; text in another language goes nowhere else.+ only exceptions are the translation catalogs under+ `apps/web/src/i18n/locales/` (Web client) and `apps/desktop/src/i18n/locales/`+ (desktop shell); text in another language goes nowhere else.- NO: a test fixture with a literal Chinese sentence.- OK: the same text as escaped code points (`"\u4f60\u597d"`), or kana,accented Latin, or emoji when any unspaced script will do.diff --git a/scripts/ci/check-changed-files.sh b/scripts/ci/check-changed-files.shindex e327abf6..50f0b8cf 100755--- a/scripts/ci/check-changed-files.sh+++ b/scripts/ci/check-changed-files.sh@@ -64,7 +64,11 @@ while IFS= read -r -d '' file; doif [[ "$app_lints" == false ]]; then eslint_files+=("$file"); fi;;esac- [[ "$file" == apps/web/src/i18n/locales/* ]] || english_only_files+=("$file")+ # Translation catalogs: the Web client's and the desktop shell's.+ case "$file" in+ apps/web/src/i18n/locales/* | apps/desktop/src/i18n/locales/*) ;;+ *) english_only_files+=("$file") ;;+ esacdone < <(list_changed)if ((${#prettier_files[@]} > 0)); thenpnpm exec prettier --check "${prettier_files[@]}"diff --git a/scripts/ci/check-repository-gate.test.ts b/scripts/ci/check-repository-gate.test.tsindex 026672b8..8c0c4d99 100644--- a/scripts/ci/check-repository-gate.test.ts+++ b/scripts/ci/check-repository-gate.test.ts@@ -182,21 +182,26 @@ describe("local repository gate", { timeout: 60_000 }, () => {expect(kana.status).toBe(0);});- it("allows CJK ideographs only in the client's translation catalogs", () => {+ it("allows CJK ideographs only in the translation catalogs", () => {const changedContent = '{ "greeting": "\u4f60\u597d" }\n';- const catalog = runGate({- changedPath: "apps/web/src/i18n/locales/zh-CN.json",- changedContent,- });- expect(catalog.status).toBe(0);- expect(catalog.commands).toContain(- "pnpm exec prettier --check apps/web/src/i18n/locales/zh-CN.json",- );+ for (const changedPath of [+ "apps/web/src/i18n/locales/zh-CN.json",+ "apps/desktop/src/i18n/locales/zh-CN.json",+ ]) {+ const catalog = runGate({ changedPath, changedContent });+ expect(catalog.status).toBe(0);+ expect(catalog.commands).toContain(+ `pnpm exec prettier --check ${changedPath}`,+ );+ }for (const changedPath of ["apps/web/src/i18n/zh-CN.json","apps/web/src/i18n/locales.json",- "apps/desktop/src/i18n/locales/zh-CN.json",+ "apps/desktop/src/i18n/zh-CN.json",+ "apps/desktop/src/i18n/locales.json",+ "apps/desktop/src/shell/setup.html",+ "apps/desktop/locales/zh-CN.json",]) {const elsewhere = runGate({ changedPath, changedContent });expect(elsewhere.status).not.toBe(0);