Trait rust_i18n_support::Backend
source · pub trait Backend:
Send
+ Sync
+ 'static {
// Required methods
fn available_locales(&self) -> Vec<&str>;
fn translate(&self, locale: &str, key: &str) -> Option<&str>;
}
Expand description
I18n backend trait
Required Methods§
sourcefn available_locales(&self) -> Vec<&str>
fn available_locales(&self) -> Vec<&str>
Return the available locales