feat(i18n): add the senbei-i18n message catalog

Every piece of user-facing text becomes a variant of Msg (engine and
driver messages), Step (verbose pipeline steps), Term (report values),
or Cli (command-line wording). Each language module renders every
variant, so a missing translation, an unknown placeholder, or a dropped
argument is a compile error.

English is the wording Senbei already prints, copied verbatim. Simplified
Chinese, Traditional Chinese, Japanese, and Korean translate it. A
Message keeps the recorded English next to its optional code, so
reports, logs, and JSON stay English while a front end shows the
translation.
This commit is contained in:
Momoko-Ayase committed 2026-11-08 02:24:29 +08:00
1 parent 4d211166bf
commit 9481b0ccf9
12 files changed
+2842

No files matched your search

+2
View File
@@ -4,6 +4,7 @@ members = [
"senbei-crypto",
"senbei-elf",
"senbei-engine",
"senbei-i18n",
"senbei-io",
"senbei-metadata",
"senbei-pe",
@@ -44,6 +45,7 @@ zip = { version = "9.3", default-features = false, features = ["deflate"] }
senbei-crypto = { path = "senbei-crypto" }
senbei-elf = { path = "senbei-elf" }
senbei-engine = { path = "senbei-engine" }
senbei-i18n = { path = "senbei-i18n" }
senbei-io = { path = "senbei-io" }
senbei-metadata = { path = "senbei-metadata" }
senbei-pe = { path = "senbei-pe" }