{"id":58614,"library":"fluent","title":"Fluent","description":"An umbrella crate exposing the combined features of fluent-rs crates with additional convenience macros for Project Fluent, a localization system designed to unleash the entire expressive power of natural language translations.","status":"active","version":"0.17.0","language":"rust","source_language":null,"source_url":"https://github.com/projectfluent/fluent-rs","tags":["localization","i18n","fluent","translation"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nfluent = \"0.17.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add fluent","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"FluentBundle","correct":"use fluent::FluentBundle;"}],"quickstart":{"code":"use fluent::{FluentBundle, FluentResource};\nuse std::collections::HashMap;\n\nfn main() {\n    let ftl_string = \"hello-world = Hello, world!\".to_owned();\n    let res = FluentResource::try_new(ftl_string).expect(\"Failed to parse FTL.\");\n    let mut bundle = FluentBundle::new(vec![\"en-US\"]);\n    bundle.add_resource(res).expect(\"Failed to add resource.\");\n    let msg = bundle.get_message(\"hello-world\").expect(\"Message not found.\");\n    let mut errors = vec![];\n    let value = bundle.format_pattern(msg.value().unwrap(), None, &mut errors);\n    println!(\"{}\", value);\n}","lang":"rust","description":"Creates a Fluent bundle, adds a resource, and formats a message."},"warnings":[{"fix":"Always provide at least one valid locale string (e.g., \"en-US\") when creating a FluentBundle.","message":"FluentBundle requires a locale; using an empty locale list may cause panics.","severity":"gotcha","affected_versions":">=0.14.0"}],"env_vars":null,"search_vec":"'addit':15 'combin':7 'conveni':16 'crate':4,13 'design':24 'entir':28 'expos':5 'express':29 'featur':8 'fluent':1,11,20,37 'fluent-r':10 'i18n':36 'languag':33 'local':22,35 'macro':17 'natur':32 'power':30 'project':19 'rs':12 'system':23 'translat':34,38 'umbrella':3 'unleash':26","created_at":"2026-06-16T16:32:18.282508+00:00","updated_at":"2026-06-16T16:32:18.282508+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://www.projectfluent.org","github":"https://github.com/projectfluent/fluent-rs","docs":"https://docs.rs/fluent/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}