diff --git a/crates/CLAUDE.md b/crates/CLAUDE.md index 00315b009..2d1e89ee5 100644 --- a/crates/CLAUDE.md +++ b/crates/CLAUDE.md @@ -95,7 +95,7 @@ Mutators on `Document`: | LayerContextMenu | Right-click overlay on layer rows + page tabs (Rename / Duplicate / Delete / Group / Ungroup / Lock / Hide; subset on page tabs) | `layer_context_menu.rs` | | AgentSettings | Cmd+, modal — 880×640 with sidebar nav (Agents / MCP / Images / System) + scrollable right pane | `agent_settings_panel.rs` + `agent_settings_{i18n,images,mcp,system}.rs` | | theme | shadcn-dark palette tokens (incl. `canvas_surface`) | `theme.rs` | -| i18n | 15 locale tables (706 keys each, TS-mirrored) | `i18n/{en,zh_cn,zh_tw,ja,ko,fr,es,de,pt,ru,hi,tr,th,vi,id}.rs` | +| i18n | 15 locale tables (706 keys each, TS-mirrored) — extracted into the `op-i18n` crate | `op-i18n/src/i18n/{en,zh_cn,zh_tw,ja,ko,fr,es,de,pt,ru,hi,tr,th,vi,id}.rs` | ## Theme + i18n @@ -275,7 +275,7 @@ Every input path that reasons about the canvas region MUST derive its rects from - **Images** — Image Search Ready/Not-configured indicator + collapsible Advanced section (Openverse OAuth Client ID / Secret + Register link + Test button), then Image Generation section with `+ Add` empty state. - **System** — read-only Auto-update status card (no updater backend wired yet — a togglable switch would lie to the user; the row paints as informational text). -`agent_settings_i18n.rs` carries a hand-maintained EN/ZH key table (~50 keys, `settings.tab.*` / `settings.agents.*` / `settings.mcp.*` / `settings.images.*` / `settings.system.*` / `settings.provider.*`). The repo's main `i18n/{en,zh_cn,…}.rs` tables stay untouched (they're auto-generated from `apps/web/src/i18n/locales/*.ts`); when those TS tables grow `settings.*` keys, this hand-table collapses into per-locale `lookup` calls. +`agent_settings_i18n.rs` carries a hand-maintained EN/ZH key table (~50 keys, `settings.tab.*` / `settings.agents.*` / `settings.mcp.*` / `settings.images.*` / `settings.system.*` / `settings.provider.*`). The repo's main `op-i18n/src/i18n/{en,zh_cn,…}.rs` tables stay untouched (they're auto-generated from `apps/web/src/i18n/locales/*.ts`); when those TS tables grow `settings.*` keys, this hand-table collapses into per-locale `lookup` calls. ### Settings input editing diff --git a/crates/openpencil-shell-core/src/widgets/agent_settings_i18n.rs b/crates/openpencil-shell-core/src/widgets/agent_settings_i18n.rs index 796f30a7b..1ae9645fa 100644 --- a/crates/openpencil-shell-core/src/widgets/agent_settings_i18n.rs +++ b/crates/openpencil-shell-core/src/widgets/agent_settings_i18n.rs @@ -1,6 +1,6 @@ //! Hand-maintained EN/ZH lookup for the settings modal. //! -//! The repo's main locale tables (`crates/.../i18n/{en,zh_cn,…}.rs`) +//! The repo's main locale tables (`crates/op-i18n/src/i18n/{en,zh_cn,…}.rs`) //! are auto-generated from `apps/web/src/i18n/locales/*.ts` via //! `tools/convert-locales.py` and carry a "do NOT hand-edit" //! header. The settings modal strings haven't been added to the diff --git a/vendor/jian b/vendor/jian index 18ec5be76..73d13f2fd 160000 --- a/vendor/jian +++ b/vendor/jian @@ -1 +1 @@ -Subproject commit 18ec5be7600d7b403e6021d0564b0429e3a00edc +Subproject commit 73d13f2fd91d6b045297c38fa65a2e0c73ea84fb