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:
danny 2026-10-16 06:39:42 +02:00
parent 851d438e2a
commit 7c0fb312f6
21 changed files with 273 additions and 37 deletions

View file

@ -7,6 +7,7 @@
* dirty tab asks first (see the editor store).
*/
import { X } from "@lucide/vue";
import { t } from "../../i18n";
import { useEditorStore } from "../../stores/editor";
const editor = useEditorStore();
@ -47,7 +48,7 @@ function onKeydown(event: KeyboardEvent): void {
<div
class="tabs"
role="tablist"
aria-label="Editor tabs"
:aria-label="t('editor.tabs.label')"
data-test="editor-tabs"
@keydown="onKeydown"
>
@ -70,14 +71,14 @@ function onKeydown(event: KeyboardEvent): void {
<span
v-if="tab.dirty"
class="tabs__dirty"
aria-label="unsaved changes"
:aria-label="t('editor.tabs.unsaved')"
data-test="tab-dirty"
/>
<button
class="tabs__close"
type="button"
tabindex="-1"
:aria-label="`Close ${tab.name}`"
:aria-label="t('editor.tabs.close', { name: tab.name })"
data-test="tab-close"
@click.stop="editor.requestClose(tab.id)"
>