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.
Members
name
fn name(self: &Self) -> &str
get_string
fn get_string(self: &Self, key: &str, culture: &Culture) -> Result<LocalizedString, TranslationError>
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.
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.