Debug: Add logging for embedded locale file loading

This commit is contained in:
Rodrigo Rodriguez 2026-02-14 12:25:41 +00:00
parent 30786e2cf8
commit e0f00060cb

View file

@ -132,11 +132,14 @@ impl LocaleBundle {
messages: HashMap::new(),
};
log::info!("Loading embedded files for locale: {}", locale_str);
for file in EmbeddedLocales::iter() {
if file.starts_with(locale_str) && file.ends_with(".ftl") {
log::info!("Found .ftl file for locale {}: {}", locale_str, file);
if let Some(content_bytes) = EmbeddedLocales::get(&file) {
if let Ok(content) = std::str::from_utf8(content_bytes.data.as_ref()) {
let file_translations = TranslationFile::parse(content);
log::info!("Parsed {} keys from {}", file_translations.messages.len(), file);
translations.merge(file_translations);
}
}