Skip to main content

translations

Function translations 

Source
pub fn translations(
    languages: &[&str],
    files: &[(&str, File)],
    builtin: &[(&str, &[File])],
    enums: &[(&str, &[(&str, Tone)])],
) -> Result<Translations>
Expand description

As sofie gen writes them: the source language first, then each module’s lang/<language>.toml files; enums by their enum.<name>.<variant> names, so badges and selects show their variants translated.