1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// SPDX-FileCopyrightText: Copyright (c) 2026 Mike Li/Mikewolfli/Wei Li(mikewolfli@163.com)
// SPDX-License-Identifier: MIT
//! i18n module - internationalization support with hot reload
//!
//! # Example
//!
//! ```rust
//! use rust_widgets::i18n::I18nManager;
//!
//! // Create an i18n manager
//! let mut manager = I18nManager::new();
//!
//! // Translate a key (returns the key itself if no translation found)
//! let greeting = manager.translate("hello");
//! assert_eq!(greeting, "hello");
//!
//! // Load translations from a JSON file
//! // manager.load_translations("path/to/en.json").unwrap();
//! ```
//!
//! # Reachability
//!
//! **State:** Production callers: `src/widget/base.rs:252` (`crate::i18n::translate` via the `tr!()` macro), `src/platform/profile.rs:436` (`crate::i18n::init`).
// File-based tests need `tempfile`, which is unavailable on wasm32 (no FS).
pub use ;
pub use I18nManager;
pub use ;
pub use ;
pub use ;