fluent-resmgr

Crates.iofluent-resmgr
lib.rsfluent-resmgr
version0.0.8
created_at2019-08-01 17:55:11.118339+00
updated_at2025-05-22 14:06:52.544549+00
descriptionA 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.
homepagehttps://www.projectfluent.org
repositoryhttps://github.com/projectfluent/fluent-rs
max_upload_size
id153553
size48,405
Caleb Maclennan (alerque)

documentation

README

Fluent Resource Manager

crates.io docs.rs Build Coverage Status

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.

Usage

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!");
}

Get Involved

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.

Discuss

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.

Commit count: 719

cargo fmt