From dee9d86a813a31559cba5668cd107167a2a6b44c Mon Sep 17 00:00:00 2001 From: "kiloconnect[bot]" <240665456+kiloconnect[bot]@users.noreply.github.com> Date: Tue, 28 Apr 2026 08:34:07 +0000 Subject: [PATCH] chore: exempt .opencode/glossary from md-table-padding check Glossary tables are kept as aligned prose tables for translator readability; reverting the auto-fix and skipping the directory. --- .opencode/glossary/br.md | 10 +++++----- .opencode/glossary/bs.md | 10 +++++----- .opencode/glossary/ja.md | 6 +++--- .opencode/glossary/no.md | 14 +++++++------- .opencode/glossary/th.md | 8 ++++---- .opencode/glossary/tr.md | 14 +++++++------- .opencode/glossary/zh-cn.md | 22 +++++++++++----------- .opencode/glossary/zh-tw.md | 22 +++++++++++----------- script/check-md-table-padding.ts | 3 +++ 9 files changed, 56 insertions(+), 53 deletions(-) diff --git a/.opencode/glossary/br.md b/.opencode/glossary/br.md index 716267908b..11c5bd3993 100644 --- a/.opencode/glossary/br.md +++ b/.opencode/glossary/br.md @@ -15,11 +15,11 @@ These are PR-backed locale naming preferences and may evolve. -| English / Context | Preferred | Notes | -|---|---|---| -| Brazilian Portuguese (prose locale name) | `pt-BR` | Use standard locale naming in prose when helpful | -| Repo locale slug (code/config) | `br` | PR #10086 uses `br` for consistency/simplicity | -| Browser locale detection | `pt`, `pt-br`, `pt-BR` -> `br` | Preserve this mapping in docs/examples about locale detection | +| English / Context | Preferred | Notes | +| ---------------------------------------- | ------------------------------ | ------------------------------------------------------------- | +| Brazilian Portuguese (prose locale name) | `pt-BR` | Use standard locale naming in prose when helpful | +| Repo locale slug (code/config) | `br` | PR #10086 uses `br` for consistency/simplicity | +| Browser locale detection | `pt`, `pt-br`, `pt-BR` -> `br` | Preserve this mapping in docs/examples about locale detection | ## Guidance diff --git a/.opencode/glossary/bs.md b/.opencode/glossary/bs.md index 072c7ec5fe..006b464ad3 100644 --- a/.opencode/glossary/bs.md +++ b/.opencode/glossary/bs.md @@ -15,11 +15,11 @@ These are PR-backed locale naming preferences and may evolve. -| English / Context | Preferred | Notes | -|---|---|---| -| Bosnian language label (UI) | `Bosanski` | PR #12283 tested switching language to `Bosanski` | -| Repo locale slug (code/config) | `bs` | Preserve in code, config, paths, and examples | -| Browser locale detection (Bosnian) | `bs` | PR #12283 added `bs` locale auto-detection | +| English / Context | Preferred | Notes | +| ---------------------------------- | ---------- | ------------------------------------------------- | +| Bosnian language label (UI) | `Bosanski` | PR #12283 tested switching language to `Bosanski` | +| Repo locale slug (code/config) | `bs` | Preserve in code, config, paths, and examples | +| Browser locale detection (Bosnian) | `bs` | PR #12283 added `bs` locale auto-detection | ## Guidance diff --git a/.opencode/glossary/ja.md b/.opencode/glossary/ja.md index 1d01b27e47..b11b12ee10 100644 --- a/.opencode/glossary/ja.md +++ b/.opencode/glossary/ja.md @@ -16,9 +16,9 @@ These are PR-backed wording preferences and may evolve. -| English / Context | Preferred | Notes | -|---|---|---| -| WSL integration (UI label) | `WSL連携` | PR #13160 prefers this over `WSL統合` | +| English / Context | Preferred | Notes | +| --------------------------- | ----------------------- | ------------------------------------- | +| WSL integration (UI label) | `WSL連携` | PR #13160 prefers this over `WSL統合` | | WSL integration description | `WindowsのWSL環境で...` | PR #13160 improved phrasing naturally | ## Guidance diff --git a/.opencode/glossary/no.md b/.opencode/glossary/no.md index cce272a3fd..2bcf528651 100644 --- a/.opencode/glossary/no.md +++ b/.opencode/glossary/no.md @@ -16,13 +16,13 @@ These are PR-backed corrections and may evolve. -| English / Context | Preferred | Notes | -|---|---|---| -| Save (data persistence action) | `Lagre` | Prefer over `Spare` | -| Disabled (feature/state) | `deaktivert` | Prefer over `funksjonshemmet` | -| API keys | `API Nøkler` | Prefer over `API Taster` | -| Cost (noun) | `Kostnad` | Prefer over verb form `Koste` | -| Show/View (imperative button label) | `Vis` | Prefer over `Utsikt` | +| English / Context | Preferred | Notes | +| ----------------------------------- | ------------ | ----------------------------- | +| Save (data persistence action) | `Lagre` | Prefer over `Spare` | +| Disabled (feature/state) | `deaktivert` | Prefer over `funksjonshemmet` | +| API keys | `API Nøkler` | Prefer over `API Taster` | +| Cost (noun) | `Kostnad` | Prefer over verb form `Koste` | +| Show/View (imperative button label) | `Vis` | Prefer over `Utsikt` | ## Guidance diff --git a/.opencode/glossary/th.md b/.opencode/glossary/th.md index b16d5e113d..8175614220 100644 --- a/.opencode/glossary/th.md +++ b/.opencode/glossary/th.md @@ -16,10 +16,10 @@ These are PR-backed preferences and may evolve. -| English / Context | Preferred | Notes | -|---|---|---| -| Thai language label in language lists | `ไทย` | PR #10809 standardized this across locales | -| Language names in language pickers | Native names (static) | PR #11496: keep names like `English`, `Deutsch`, `ไทย` consistent across locales | +| English / Context | Preferred | Notes | +| ------------------------------------- | --------------------- | -------------------------------------------------------------------------------- | +| Thai language label in language lists | `ไทย` | PR #10809 standardized this across locales | +| Language names in language pickers | Native names (static) | PR #11496: keep names like `English`, `Deutsch`, `ไทย` consistent across locales | ## Guidance diff --git a/.opencode/glossary/tr.md b/.opencode/glossary/tr.md index 704ea5771e..72b1cdfb40 100644 --- a/.opencode/glossary/tr.md +++ b/.opencode/glossary/tr.md @@ -15,13 +15,13 @@ These are PR-backed wording preferences and may evolve. -| English / Context | Preferred | Notes | -|---|---|---| -| available in beta | `beta olarak mevcut` | Prefer this over `beta olarak kullanılabilir` | -| privacy-first | `Gizlilik öncelikli tasarlandı` | Prefer this over `Önce gizlilik için tasarlandı` | -| connect your local models | `yerel modellerinizi bağlayabilirsiniz` | Use the fuller, more direct action phrase | -| `` key label | `Tab` | Use `Tab` in prose; keep `` in literal UI or code blocks | -| cross-platform | `cross-platform (tüm platformlarda)` | Keep the English term, add a short clarification when helpful | +| English / Context | Preferred | Notes | +| ------------------------- | --------------------------------------- | ------------------------------------------------------------- | +| available in beta | `beta olarak mevcut` | Prefer this over `beta olarak kullanılabilir` | +| privacy-first | `Gizlilik öncelikli tasarlandı` | Prefer this over `Önce gizlilik için tasarlandı` | +| connect your local models | `yerel modellerinizi bağlayabilirsiniz` | Use the fuller, more direct action phrase | +| `` key label | `Tab` | Use `Tab` in prose; keep `` in literal UI or code blocks | +| cross-platform | `cross-platform (tüm platformlarda)` | Keep the English term, add a short clarification when helpful | ## Guidance diff --git a/.opencode/glossary/zh-cn.md b/.opencode/glossary/zh-cn.md index a44963094b..3b280e9e45 100644 --- a/.opencode/glossary/zh-cn.md +++ b/.opencode/glossary/zh-cn.md @@ -16,17 +16,17 @@ These are preferred terms for docs/UI prose and may evolve. -| English | Preferred | Notes | -|---|---|---| -| prompt | 提示词 | Keep `--prompt` unchanged in flags/code | -| session | 会话 | | -| provider | 提供商 | | -| share link / shared URL | 分享链接 | Prefer `分享` for user-facing share actions | -| headless (server) | 无界面 | Docs wording | -| authentication | 认证 | Prefer in auth/OAuth contexts | -| cache | 缓存 | | -| keybind / shortcut | 快捷键 | User-facing docs wording | -| workflow | 工作流 | e.g. GitHub Actions workflow | +| English | Preferred | Notes | +| ----------------------- | --------- | ------------------------------------------- | +| prompt | 提示词 | Keep `--prompt` unchanged in flags/code | +| session | 会话 | | +| provider | 提供商 | | +| share link / shared URL | 分享链接 | Prefer `分享` for user-facing share actions | +| headless (server) | 无界面 | Docs wording | +| authentication | 认证 | Prefer in auth/OAuth contexts | +| cache | 缓存 | | +| keybind / shortcut | 快捷键 | User-facing docs wording | +| workflow | 工作流 | e.g. GitHub Actions workflow | ## Guidance diff --git a/.opencode/glossary/zh-tw.md b/.opencode/glossary/zh-tw.md index a3b0689576..aa8eafb794 100644 --- a/.opencode/glossary/zh-tw.md +++ b/.opencode/glossary/zh-tw.md @@ -16,17 +16,17 @@ These are preferred terms for docs/UI prose and may evolve. -| English | Preferred | Notes | -|---|---|---| -| prompt | 提示詞 | Keep `--prompt` unchanged in flags/code | -| session | 工作階段 | | -| provider | 供應商 | | -| share link / shared URL | 分享連結 | Prefer `分享` for user-facing share actions | -| headless (server) | 無介面 | Docs wording | -| authentication | 認證 | Prefer in auth/OAuth contexts | -| cache | 快取 | | -| keybind / shortcut | 快捷鍵 | User-facing docs wording | -| workflow | 工作流程 | e.g. GitHub Actions workflow | +| English | Preferred | Notes | +| ----------------------- | --------- | ------------------------------------------- | +| prompt | 提示詞 | Keep `--prompt` unchanged in flags/code | +| session | 工作階段 | | +| provider | 供應商 | | +| share link / shared URL | 分享連結 | Prefer `分享` for user-facing share actions | +| headless (server) | 無介面 | Docs wording | +| authentication | 認證 | Prefer in auth/OAuth contexts | +| cache | 快取 | | +| keybind / shortcut | 快捷鍵 | User-facing docs wording | +| workflow | 工作流程 | e.g. GitHub Actions workflow | ## Guidance diff --git a/script/check-md-table-padding.ts b/script/check-md-table-padding.ts index a9db08bfcb..8495ef8976 100755 --- a/script/check-md-table-padding.ts +++ b/script/check-md-table-padding.ts @@ -46,6 +46,9 @@ function tracked() { function skip(file: string) { const norm = file.replaceAll("\\", "/").toLowerCase() if (norm.startsWith(".changeset/")) return true + // Glossary tables are maintained as aligned prose tables for translator + // readability; the churn cost is low since they're rarely edited. + if (norm.startsWith(".opencode/glossary/")) return true if (norm === "changelog.md" || norm.endsWith("/changelog.md")) return true if (norm.includes("node_modules/")) return true const parts = norm.split("/")