fix fallback preferences being used instead of English

Check needs to be done regardless of if we found a regional variant
or not.
This commit is contained in:
Damien Elmes 2020-03-12 15:28:14 +10:00
parent 2f02867840
commit 5e676db4a0

View file

@ -260,6 +260,7 @@ impl I18n {
} else { } else {
error!(log, "Failed to create bundle for {:?}", lang.language()) error!(log, "Failed to create bundle for {:?}", lang.language())
} }
}
// if English was listed, any further preferences are skipped, // if English was listed, any further preferences are skipped,
// as the template has 100% coverage, and we need to ensure // as the template has 100% coverage, and we need to ensure
@ -270,7 +271,6 @@ impl I18n {
break; break;
} }
} }
}
// add English templates // add English templates
let template_bundle = let template_bundle =