Crates.io | fluent-resmgr |
lib.rs | fluent-resmgr |
version | 0.0.8 |
created_at | 2019-08-01 17:55:11.118339+00 |
updated_at | 2025-05-22 14:06:52.544549+00 |
description | A standalone solution for managing resource files and returning locale bundles for Project Fluent, a localization system designed to unleash the entire expressive power of natural language translations. |
homepage | https://www.projectfluent.org |
repository | https://github.com/projectfluent/fluent-rs |
max_upload_size | |
id | 153553 |
size | 48,405 |
The fluent-rs
workspace is a collection of Rust crates implementing Project Fluent,
a localization system designed to unleash the entire expressive power of natural language translations.
This crate is a standalone solution for managing resource files and returning locale bundles.
use fluent_resmgr::resource_manager::ResourceManager;
fn main() {
let mgr = ResourceManager::new("./examples/resources/{locale}/{res_id}".into());
let bundle = mgr.get_bundle(locales, resources);
let value = bundle.format_value("hello-world", None);
assert_eq!(&value, "Hello, world!");
}
fluent-rs
is open-source, licensed under both the Apache 2.0 and MIT licenses. We
encourage everyone to take a look at our code and we'll listen to your
feedback.
We'd love to hear your thoughts on Project Fluent! Whether you're a localizer looking for a better way to express yourself in your language, or a developer trying to make your app localizable and multilingual, or a hacker looking for a project to contribute to, please do get in touch on the mailing list and the IRC channel.