From 30786e2cf8314654cd480a80dd1e06d7114112d8 Mon Sep 17 00:00:00 2001 From: Rodrigo Rodriguez Date: Sat, 14 Feb 2026 11:48:44 +0000 Subject: [PATCH] fix(i18n): Add logging for embedded locale loading --- src/i18n/bundle.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/i18n/bundle.rs b/src/i18n/bundle.rs index 2111783..52b2132 100644 --- a/src/i18n/bundle.rs +++ b/src/i18n/bundle.rs @@ -220,7 +220,10 @@ impl I18nBundle { let mut available = Vec::new(); let mut seen_locales = std::collections::HashSet::new(); - for file in EmbeddedLocales::iter() { + let files: Vec<_> = EmbeddedLocales::iter().collect(); + log::info!("Loading embedded locales, found {} files", files.len()); + + for file in files { // Path structure: locale/file.ftl let parts: Vec<&str> = file.split('/').collect(); if let Some(locale_str) = parts.first() { @@ -244,6 +247,7 @@ impl I18nBundle { } let fallback = Locale::default(); + log::info!("Loaded {} embedded locales: {:?}", available.len(), available); Ok(Self { bundles,