Skip to main content

Crate rusty18n

Crate rusty18n 

Source

Macros§

define_i18n
Defines a sparse locale constructor by applying DSL overrides over defaults.
define_i18n_fallback
Defines the canonical fallback i18n schema and values from a single DSL source.
define_i18n_locales
Generates the locale key enum and the i18n wrapper constructors from locale modules.
t
Reads a translation value from a resolved locale view.
t_prefix
Defines a local accessor macro bound to a resolved locale view.

Structs§

I18NDynamicWrapper
Dynamically loaded i18n resources.
I18NResolved
A resolved locale view over a fallback value and an optional sparse override.
I18NStore
The I18NStore always keeps the fallback locale resident.

Traits§

I18NFallback
A trait for defining fallback behavior in internationalization (i18n).
I18NTrait
This trait groups Key, Value types for a given I18N implementation.

Type Aliases§

I18NDynamicFormatter
Shared generated formatter resource type.
I18NDynamicResource
Shared i18n resource type.
I18NLocaleLoader
A locale constructor used by the dynamic wrapper.
R
Default generated i18n resource type for plain string leaves.