Skip to main content

ftui_i18n/
lib.rs

1#![forbid(unsafe_code)]
2
3//! Internationalization (i18n) foundation for FrankenTUI.
4//!
5//! Provides externalized string storage with key-based lookup,
6//! locale fallback chains, ICU-style plural forms, and variable
7//! interpolation.
8//!
9//! # Role in FrankenTUI
10//! `ftui-i18n` isolates localization concerns so widgets and apps can
11//! remain deterministic while still supporting multiple languages.
12//!
13//! # How it fits in the system
14//! Widgets and demo screens can depend on this crate to resolve strings
15//! into localized text before rendering. It does not depend on rendering or
16//! runtime, keeping the localization layer reusable and testable.
17
18pub mod catalog;
19pub mod plural;
20
21pub use catalog::{
22    CoverageReport, I18nError, LocaleCoverage, LocaleStrings, StringCatalog, StringEntry,
23};
24pub use plural::{PluralCategory, PluralForms, PluralRule};