Skip to main content

Module i18n

Module i18n 

Source
Available on crate feature i18n only.

Macros§

lang
langid
t
Translate message from key, panic! if id not found…
te
Translate message from key, returning crate::prelude::Error if id not found…
tid
Translate message from key, return id if no translation found…

Structs§

I18n
The main handle for accessing and managing internationalization state.
I18nConfig
The configuration for I18n.
LanguageIdentifier
LanguageIdentifier is a core struct representing a Unicode Language Identifier.
Locale
Locale is a “place-holder” around what will eventually be a fluent::FluentBundle

Enums§

Error
LocaleResource
A LocaleResource can be static text, or a filesystem file.

Functions§

use_init_i18n
Initialize an I18n instance and provide it to descendant components.
use_share_i18n
Provide an existing I18n instance to descendant components.