Crate fluent_localization_loader

Source

Structs§

LocalizationHolder
Holder to hold all the loaded bundled for localizations, as well as the currently configured default language
LocalizationLoadingError
Resource
Basic wrapper to hold a resource and its original filename

Constants§

DEFAULT_DIR
FILE_EXTENSION

Functions§

base_path
The base path localizations will be loaded from, this is controlled by the TRANSLATION_DIR environment variable; Will default to the localizations subfolder of the current working directory if not set
get_default_language
Get the current default language, this is controlled by the DEFAULT_LANG environment variable. Will default to DEFAULT if not set
load_resources_from_folder
Load all fluent resource files from a directory and returns them. Only files with an .ftl extension will be loaded, does not load files from subfolders