euv-ui 0.44.0

Cross-platform UI component library and 17-scheme design system for the euv framework with pixel-consistent rendering across Web, Android, iOS, iPadOS, macOS, Windows, and Linux.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use super::*;

/// Reactive multi-locale translation catalog with zero global mutable state.
#[derive(Clone, Data, Debug)]
pub struct I18nCatalog {
    /// Active locale identifier signal (e.g. `"en"`, `"zh"`).
    #[get(type(copy))]
    pub(crate) locale: Signal<String>,
    /// Fallback locale used when a key is absent from the active locale.
    pub(crate) fallback_locale: String,
    /// Locale-to-key-value translation tables.
    pub(crate) tables: HashMap<String, HashMap<String, String>>,
}