M1.11: English message catalog for every UI string
ui/src/i18n: en.json (20 flat dotted keys) and t(key, params?) with
{name} interpolation; a missing key warns in dev and returns the key.
All template text, title/aria-label attributes, notices and frontend
error texts go through t. ESLint vue/no-bare-strings-in-template is an
error. Catalog tests: interpolation, missing key, every t() key exists,
no unused keys. Engine messages stay English (G14). Docs updated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
851d438e2a
commit
7c0fb312f6
21 changed files with 273 additions and 37 deletions
|
|
@ -10,6 +10,7 @@
|
|||
*/
|
||||
import { ChevronDown, ChevronRight, File, FileCode, Folder, FolderOpen } from "@lucide/vue";
|
||||
import { computed, nextTick, ref } from "vue";
|
||||
import { t } from "../../i18n";
|
||||
import { parentOf, useProjectStore, type TreeRow } from "../../stores/project";
|
||||
import { useEditorStore } from "../../stores/editor";
|
||||
import type { TreeEntry } from "./engineEvents";
|
||||
|
|
@ -283,7 +284,7 @@ function onFocus(): void {
|
|||
:style="{ '--tree-depth': row.depth }"
|
||||
data-test="tree-loading"
|
||||
>
|
||||
Loading…
|
||||
{{ t("project.tree.loading") }}
|
||||
</div>
|
||||
<div
|
||||
v-else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue