1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
use std::collections::HashMap; /// A single translation entry #[derive(Debug, Clone, PartialEq)] pub struct Translation { /// Dot-separated key path (e.g., "ui.buttons.buy") pub key: String, /// Translated text pub value: String, /// Locale identifier (e.g., "en", "id", "es") pub locale: String, /// Optional context for disambiguation pub context: Option<String>, } /// Map of translation keys to values #[allow(dead_code)] pub type TranslationMap = HashMap<String, String>;