localization_build/
lib.rs

1/// Sets the root directory for the localization files
2/// default: ./localization
3pub fn set_root(root: &'static str) {
4    println!("cargo:rustc-env=LOCALIZATION_ROOT={root}")
5}
6
7/// Sets the default locale to use as fallback
8/// default: en-US
9pub fn set_default_locale(locale: &'static str) {
10    println!("cargo:rustc-env=LOCALIZATION_DEFAULT={locale}")
11}