mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 10:50:00 +00:00
Pass the translation domain to the runtime
For rust, it uses the crate name, for others, it needs to be passed in the comment line
This commit is contained in:
parent
b997d1e8b5
commit
ce25fb65a6
9 changed files with 34 additions and 3 deletions
|
@ -298,6 +298,8 @@ pub fn compile_with_config(
|
|||
}
|
||||
|
||||
let mut compiler_config = config.config;
|
||||
compiler_config.translation_domain = std::env::var("CARGO_PKG_NAME").ok();
|
||||
|
||||
let mut rerun_if_changed = String::new();
|
||||
|
||||
if std::env::var_os("SLINT_STYLE").is_none() && compiler_config.style.is_none() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue