feat(webroot): implement multi-language (i18n) support for WebUI - #195
Open
HSSkyBoy wants to merge 11 commits into
Open
feat(webroot): implement multi-language (i18n) support for WebUI#195HSSkyBoy wants to merge 11 commits into
HSSkyBoy wants to merge 11 commits into
Conversation
…des, and keybox verdicts
…els for zh-TW/zh-CN
HSSkyBoy
force-pushed
the
feat/webui-i18n
branch
from
August 15, 2026 10:28
67f3872 to
fde7198
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds full multi-language (i18n) support to the WebUI, with English,
Traditional Chinese (zh-TW), and Simplified Chinese (zh-CN) translations.
i18n.jsmodule: a dictionary-based translation system witht(key, fallback)for programmatic lookups andtranslateDOM()totranslate all
[data-i18n]elements in the DOM.localStorageand applied onload; switching language reloads the page to fully re-render text.
partial translation never breaks the UI.
StrongBox,TEE, schema fieldnames like
Brand/Device/Serial) are intentionally leftuntranslated to avoid ambiguity for developer-facing/debugging text.
associated dialogs, hints, and error states.
Design notes
word-for-word translation, so longer descriptive strings (e.g.
attestation/harvest failure messages, patch vs. generation mode
explanations) read clearly to native speakers rather than as
machine-translated text.
keys across
en/zh-TW/zh-CN.Testing
i18n.jsloads without syntax errors and all three localesexpose an identical key set.
and error messages render correctly with no leftover untranslated
strings (aside from the intentionally-untranslated technical terms).