Expand description
Tinymist’s localization library.
Macros§
- bail
- Returns an error with a translated message.
- t
- Tries to translate a string to the current language.
Enums§
- Arg
- An argument for a translation.
Traits§
- Debug
L10n - Converts an object to an argument of debug message.
Functions§
- deserialize
- Deserializes a TOML string into a map of translations.
- load_
translations - Loads a TOML string into a map of translations.
- serialize_
translations - Writes a map of translations to a TOML string.
- set_
locale - Sets the current locale.
- set_
translations - Sets the current translations. It can only be called once.
- t_
with_ args - Tries to translate a string to the current language.
- t_
without_ args - Tries to translate a string to the current language.
- update_
disk_ translations - Updates disk translations with new key-value pairs.
- update_
translations - Updates a map of translations with new key-value pairs.
Type Aliases§
- Translation
Map - A map of translations.
- Translation
MapSet - A set of translation maps.