mirror of
https://github.com/Momoko-Ayase/Senbei.git
synced 2026-11-25 10:52:47 +08:00
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:
1 parent
4d211166bf
commit
9481b0ccf9
12 files changed
+2842
No files matched your search
@@ -0,0 +1,16 @@
|
||||
[package]
|
||||
name = "senbei-i18n"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
rust-version.workspace = true
|
||||
license.workspace = true
|
||||
description = "User-facing text for Senbei in English, Simplified Chinese, Traditional Chinese, Japanese, and Korean"
|
||||
|
||||
[dependencies]
|
||||
serde.workspace = true
|
||||
|
||||
[dev-dependencies]
|
||||
serde_json.workspace = true
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
Reference in new issue
Block a user