core: re-export the tr crate when the tr feature is activated

This commit is contained in:
Simon Hausmann 2025-09-27 14:06:29 +02:00 committed by Simon Hausmann
parent 2bbe5e8786
commit 60d8897c8c
3 changed files with 4 additions and 1 deletions

View file

@ -53,7 +53,6 @@ spin_on = { workspace = true }
css-color-parser2 = { workspace = true }
pyo3-stub-gen = { version = "0.9.0", default-features = false }
smol = { version = "2.0.0" }
tr = { workspace = true }
[package.metadata.maturin]
python-source = "slint"

View file

@ -17,6 +17,7 @@ mod errors;
mod models;
mod timer;
mod value;
use i_slint_core::translations::tr;
fn handle_unraisable(py: Python<'_>, context: String, err: PyErr) {
let exception = err.value(py);