For translation bundling with Rust, mention where the code snippet goes

This commit is contained in:
Simon Hausmann 2024-12-17 15:31:02 +01:00
parent 4b859989df
commit 276fee4e0c

View file

@ -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");