Available on crate feature
i18n only.Expand description
Reexport freya-i18n when the i18n feature is enabled.
Macros§
- lang
unic-langid-macros - langid
unic-langid-macros - t
- Translate message from key, panic! if id not found…
- te
- Translate message from key, returning
crate::prelude::Errorif 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.
- I18n
Config - The configuration for
I18n. - Language
Identifier LanguageIdentifieris a core struct representing a Unicode Language Identifier.- Locale
Localeis a “place-holder” around what will eventually be afluent::FluentBundle
Enums§
- Error
- Language
Identifier Error - Enum with errors that can be returned by LanguageIdentifier.
- Locale
Resource - A
LocaleResourcecan be static text, or a filesystem file.
Functions§
- use_
init_ i18n - Initialize an
I18ninstance and provide it to descendant components.