Skip to main content

lib_humus/language/
mod.rs

1// SPDX-FileCopyrightText: 2026 Slatian <baschdel@disroot.org>
2//
3// SPDX-License-Identifier: AGPL-3.0-or-later
4
5//! This module houses everything relating to localization and translation built into lib-humus.
6//!
7//! Localization in lib-humus is mostly done by the [fluent] crate. Fluent is documented over at [projectfluent.org](https://projectfluent.org/).
8//!
9//! The central element here is the [LanguageEngine] which readslocalization information from the filesystem and provides it as an high-level API.
10
11mod language_engine;
12pub use language_engine::Bundle;
13pub use language_engine::LanguageEngine;
14pub use language_engine::TextFunctionError;
15
16mod loader_error;
17pub use loader_error::LanguageEngineLoaderError;
18
19mod manifest;
20pub use manifest::LanguageDescriptor;
21pub use manifest::LanguageManifest;
22
23mod text_function;
24pub use text_function::TextFunction;
25pub use text_function::TextFunctionContext;
26pub use text_function::TextFunctionContextGetter;
27
28mod unicode_language_identifier;
29pub use unicode_language_identifier::UnicodeLanguageIdentifier;
30
31mod variable_description;