mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 18:58:36 +00:00
For translation bundling with Rust, mention where the code snippet goes
This commit is contained in:
parent
4b859989df
commit
276fee4e0c
1 changed files with 3 additions and 0 deletions
|
@ -255,6 +255,9 @@ the `<domain>` is the cmake target name.
|
|||
</TabItem>
|
||||
<TabItem label="Rust" icon="rust">
|
||||
|
||||
Use `slint_build::CompilerConfiguration`'s `with_bundled_translations()` function to set up bundling in
|
||||
`build.rs`:
|
||||
|
||||
```rust
|
||||
let config = slint_build::CompilerConfiguration::new()
|
||||
.with_bundled_translations("path/to/translations");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue