fix(i18n): Add logging for embedded locale loading
This commit is contained in:
parent
38dc7c050d
commit
30786e2cf8
1 changed files with 5 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue