Expand description
Localization service, l10n! and helpers.
§Services
Services this extension provides.
§Crate
This crate is part of the zng project.
§Cargo Features
This crate provides 2 feature flags, 0 enabled by default.
§"tar"
Support for loading localization resources from TAR and Tarball.
§"lang_autonym"
Embed language and region names for Lang::autonym.
Macros§
- l10n
- Gets a variable that localizes and formats the text in a widget context.
- lang
- Compile-time validated
Langvalue.
Structs§
- Fluent
Parser Errors - Errors found parsing a fluent resource file.
- L10N
- Localization service.
- L10nDir
- Represents localization resources synchronized from files in a directory.
- L10n
Message Builder - Localized message variable builder.
- L10nTar
- Represents localization resources loaded from a
.taror.tar.gzcontainer. - Lang
- Identifies the language, region and script of text.
- Lang
Autonym - Represents the translated name of a language and region in own language, using the selected script.
- Lang
File Path - Localization resource file path in the localization directory.
- LangMap
- Represents a map of
Langkeys that can be partially matched. - Lang
Resource - Handle to a localization resource.
- Lang
Resources - Handle to multiple localization resources.
- Langs
- List of languages, in priority order.
- NilL10n
Source - Localization source that is never available.
- Swap
L10n Source - Represents localization source that can swap the actual source without disconnecting variables taken on resources.
Enums§
- L10n
Argument - Represents an argument value for a localization message.
- L10n
TarData - TAR data for
L10nTar. - Lang
Resource Status - Status of a localization resource.
Statics§
- LANG_
VAR - Language of text in a widget context.
Traits§
- L10n
Source - Represents a localization data source.