How to set Box<dyn tr::Translator> for a slint app in Rust?
#10671
-
|
We would like to make a custom implementation of But how do we configure the translator for the slint app in Rust? Can it be configured via the BackendSelector? And what features need to be enabled to use it? For Python there seems to be the following function: We'd like to do something similar but using the Rust interface of slint. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
We currently do not have a public API to do that. This is tracked in issue #3715 All we need to do is to decide on the API. |
Beta Was this translation helpful? Give feedback.
We currently do not have a public API to do that.
This is tracked in issue #3715
All we need to do is to decide on the API.
We would need to decide if we expose
tr::Translatordirectly or wrap it in another trait.