Expand description
Welcome to the i18n_provider crate of the Internationalisation
(i18n) project.
This crate consists of these modules:
-
error: Contains the enum for common errors regardless of the implementation of the localisation provider trait, -
provider: The localisation provider trait.
§Features
Available features for i18n_provider crate:
sync: Allow the use of Rust’s concurrency capabilities. Use ofArcandMutexinstead ofRcandRefCell.
§Modules
§provider: A localisation string provider.
A trait for retrieving localisation strings from a data repository via a
provider that implements the trait methods: message(), message() and
message_exact_match(). In addition, there are other trait methods for
retrieving the default language for a collection and the supported languages
for the entire data repository, the collection, and the identifier,
respectively.
§Examples
For an implementation example, see the
i18n_provider_sqlite3-rizzen-yazston crate, which uses SQLite3 for its
data store.