Dashboard lib: a words hook for the views' UI text
tsk-eztb4vkak19j open
From the integrator (seq 50135), Maity M3. Agreed with Oliver: own release after 0.11.42.
Goal: a host can supply the views' UI words in its own language.
- Host option
words: (key, params) => string | undefinedonviews.*.create; the lib's English is the fallback forundefined. - Every UI string in
ktw-*.js(headings, buttons, notes, aria labels, titles) goes through it with a stable dotted key; params for counts and names, no string concatenation around them. ktw-words.jsonships beside the manifest: every key with its English text, so a host can check its catalog covers it. A test fails if a key in code is missing from the file or vice versa.- Entry text and other data stay untouched.
- The KTW dashboard itself passes no
wordsand stays English; its rendered output is unchanged (style comparators and tests must show zero difference). - Docs: the option and the key file in the lib's README.
Not started until 0.11.42 (#758) is merged.