FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TranslationProvider

    trait · ferroui-protranslate-core · v0.5.0

    trait TranslationProvider
    

    A provider performs one exact-culture lookup; the service owns fallback. Empty values are successful translations. Failures are distinct from misses.

    View source

    Members

    name

    fn name(self: &Self) -> &str
    

    Source

    get_string

    fn get_string(self: &Self, key: &str, culture: &Culture) -> Result<LocalizedString, TranslationError>
    

    Source

    revision

    fn revision(self: &Self) -> u64
    

    Change this token when mutable catalog contents change. The service invalidates cached hits and misses before its next lookup.

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.