Change API to set the language with bundle translation

* Change API to set the language with bundle translation

Part of #6793
This commit is contained in:
Olivier Goffart 2024-11-17 11:40:02 +01:00 committed by GitHub
parent ebd1c2eb09
commit d68b84a3f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 140 additions and 57 deletions

View file

@ -223,6 +223,7 @@ pub use i_slint_core::model::{
};
pub use i_slint_core::sharedvector::SharedVector;
pub use i_slint_core::timers::{Timer, TimerMode};
pub use i_slint_core::translations::{select_bundled_translation, SelectBundledTranslationError};
pub use i_slint_core::{format, string::SharedString};
pub mod private_unstable_api;

View file

@ -214,7 +214,7 @@ pub mod re_exports {
pub use i_slint_core::slice::Slice;
pub use i_slint_core::timers::{Timer, TimerMode};
pub use i_slint_core::translations::{
set_language_internal, translate_from_bundle, translate_from_bundle_with_plural,
set_bundled_languages, translate_from_bundle, translate_from_bundle_with_plural,
};
pub use i_slint_core::window::{
InputMethodRequest, WindowAdapter, WindowAdapterRc, WindowInner,