Hwaro::Content::I18n
Instance methods
load_translations(i18n_dir : String, config : Models::Config) : TranslationData
Load translation files from i18n directory Looks for TOML files named by language code: i18n/en.toml, i18n/ko.toml, etc.
pluralize(count : Int64 | Int32, singular : String, plural : String) : String
Pluralize helper: select singular/plural form based on count
translate(key : String, language : String, translations : TranslationData, default_language : String = "en") : String
Translate a key for a given language, with optional fallback to default language