Macro rosetta_i18n::include_translations
source · macro_rules! include_translations {
() => { ... };
}
Expand description
Include the generated translations.
The generated code will be included in the file as if it were a direct element of it. It is recommended to wrap the generated code in its own module:
ⓘ
mod translations {
rosetta_18n::include_translations!();
}
This only works if the rosetta-build
output file has been unmodified.
Otherwise, use the following pattern to include the file:
ⓘ
include!("/relative/path/to/rosetta_output.rs");