Registry / utility / i18n-embed

i18n-embed

JSON →
library0.16.0rscratesunverified

Traits and macros to conveniently embed localization assets into your application binary or library to localize it at runtime.

# Cargo.toml [dependencies] i18n-embed = "0.16.0"
INSTALL
IMPORT
SIG · I18N-EMBED
I
i18n-embed
utilityrustv0.16.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

DesktopLanguageRequester
use i18n_embed::DesktopLanguageRequester;

Gets the user's requested languages for localization.

use i18n_embed::DesktopLanguageRequester; fn main() { let language = DesktopLanguageRequester::requested_languages(); println!("Requested languages: {:?}", language); }
Debug
Known issues
gotchaRequires the `fluent` feature for Fluent localization support.
fix
Add `features = ["fluent"]` to the i18n-embed dependency in Cargo.toml.
affects: >=0.10.0
Upgrade
Version history
0.16.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
i18n-embed — cargo add i18n-embed · libregistry