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
|
@ -77,6 +77,9 @@ pub struct CompilerConfiguration {
|
|||
|
||||
/// expose the accessible role and properties
|
||||
pub accessibility: bool,
|
||||
|
||||
/// The domain used as one of the parameter to the translate function
|
||||
pub translation_domain: Option<String>,
|
||||
}
|
||||
|
||||
impl CompilerConfiguration {
|
||||
|
@ -128,6 +131,7 @@ impl CompilerConfiguration {
|
|||
inline_all_elements,
|
||||
scale_factor,
|
||||
accessibility: true,
|
||||
translation_domain: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue