docs: fix stale i18n + renderer paths flagged by Codex review

This commit is contained in:
Kayshen-X 2026-05-16 15:45:54 +08:00
parent d64756933f
commit c5e04de39f
3 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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

2
vendor/jian vendored

@ -1 +1 @@
Subproject commit 18ec5be7600d7b403e6021d0564b0429e3a00edc
Subproject commit 73d13f2fd91d6b045297c38fa65a2e0c73ea84fb