slint

Function select_bundled_translation

pub fn select_bundled_translation(
    language: &str,
) -> Result<(), SelectBundledTranslationError>
Expand description

Select the current translation language when using bundled translations. This function requires that the application’s .slint file was compiled with bundled translations.. It must be called after creating the first component. Returns Ok if the language was selected; SelectBundledTranslationError otherwise.

See also the Translation documentation.