mirror of
https://github.com/Momoko-Ayase/Senbei.git
synced 2026-11-24 10:52:47 +08:00
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.
17 lines
367 B
TOML
17 lines
367 B
TOML
[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
|