Crate rusty18n

Source

Macros§

define_i18n
define_i18n_fallback
ergo_braced
r
t
t_prefix

Structs§

I18NAccess
A struct representing access to i18n resources, with fallback support.
I18NDynamicResource
A struct representing an internationalization (i18n) dynamic resource.
I18NStore
The I18NStore wraps a HashMap that maps key value pairs of Locale keys and localized implementations.
I18NWrapper
A wrapper for i18n resources, providing access and fallback support.

Traits§

I18NFallback
A trait for defining fallback behavior in internationalization (i18n). It should be used when defining the main i18n component, it will be used when a given i18n resource tries to be acquired but isn’t present for the given locale at that moment.
I18NTrait
This trait groups Key, Value types for a given I18N implementation.

Type Aliases§

DR
This type is used to define a dynamic i18n resource that uses argument variables. DR stands for Dynamic Resource.
R
This type is used to define a simple i18n resource that does not have any dynamic variables that shall be captured by thy. R stands for Resource.