Share the locale registry and generate typed static catalogs with tested fallback and allocation contracts. Add searchable sections, a backed-up defaults reset, compact navigation and expandable appearance help. Include the existing formatter corrections required by the repository hook, and remove the obsolete settings-pane line-budget exception after its construction, localization and navigation responsibilities move out. Update both English and Chinese unreleased notes.
9 lines
332 B
Rust
9 lines
332 B
Rust
#[path = "../../nebula_app/build/i18n.rs"]
|
|
mod i18n;
|
|
|
|
fn main() {
|
|
let root = std::path::PathBuf::from(std::env::var("CARGO_MANIFEST_DIR").unwrap());
|
|
let output = std::path::PathBuf::from(std::env::var("OUT_DIR").unwrap());
|
|
i18n::generate(&root.join("../../nebula_app/i18n"), &output.join("translations.rs")).unwrap();
|
|
}
|