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

@ -4,6 +4,7 @@
* Don't Save or Cancel. Escape cancels; Save has the focus.
*/
import { nextTick, ref, watch } from "vue";
import { t } from "../../i18n";
import { useEditorStore } from "../../stores/editor";
const editor = useEditorStore();
@ -52,7 +53,7 @@ function onKeydown(event: KeyboardEvent): void {
id="lt-close-prompt-title"
class="close-prompt__text"
>
Save changes to {{ editor.closePrompt.name }} before closing?
{{ t("editor.closePrompt.question", { name: editor.closePrompt.name }) }}
</p>
<div class="close-prompt__buttons">
<button
@ -62,7 +63,7 @@ function onKeydown(event: KeyboardEvent): void {
data-test="close-save"
@click="editor.resolveClose('save')"
>
Save
{{ t("common.save") }}
</button>
<button
type="button"
@ -70,7 +71,7 @@ function onKeydown(event: KeyboardEvent): void {
data-test="close-discard"
@click="editor.resolveClose('discard')"
>
Don't Save
{{ t("common.dontSave") }}
</button>
<button
type="button"
@ -78,7 +79,7 @@ function onKeydown(event: KeyboardEvent): void {
data-test="close-cancel"
@click="editor.resolveClose('cancel')"
>
Cancel
{{ t("common.cancel") }}
</button>
</div>
</div>