[−][src]Module druid::localization
Localization handling.
Localization is backed by Fluent, via fluent-rs.
In Druid, the main way you will deal with localization is via the
LocalizedString
struct.
You construct a LocalizedString
with a key, which identifies a 'message'
in your .flt
files. If your string requires arguments, you supply it with
closures that can extract those arguments from the current Env
and
Data
.
At runtime, you resolve your LocalizedString
into an actual string,
passing it the current Env
and Data
.
Structs
BundleStack | A stack of localization resources, used for fallback. |
L10nManager | Provides access to the localization strings for the current locale. |
LocalizedString | A string that can be localized based on the current locale. |