new: setup translations
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
use slint_build::CompilerConfiguration;
|
||||
|
||||
fn main() {
|
||||
let config = CompilerConfiguration::new().with_style("fluent-dark".to_owned());
|
||||
let config = CompilerConfiguration::new()
|
||||
.with_style("fluent-dark".to_owned())
|
||||
.with_bundled_translations("assets/translations");
|
||||
slint_build::compile_with_config("ui/main.slint", config).expect("Failed to compile Slint UI");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user