TranslationService
struct · ferroui-protranslate · v0.5.0
struct TranslationService
UI-thread-local convenience entry point shared by native XAML consumers. Applications that need isolation can attach a source to a subtree instead.
Members
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this type.
source
fn source() -> TranslationBindingSource
use_source
fn use_source(source: TranslationBindingSource)
use_service
fn use_service(service: ferroui_protranslate_core::TranslationService)
culture
fn culture() -> Culture
formatting_culture
fn formatting_culture() -> Culture
set_culture
fn set_culture(culture: Culture) -> bool
translate
fn translate(key: &str) -> Result<String, TranslationError>
t
fn t(key: &str) -> Result<String, TranslationError>
format
fn format(key: &str, arguments: &[FormatArgument]) -> Result<String, TranslationError>
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEitherStaticTypeMarkupTyped
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.