Skip to content

Commit 488e028

Browse files
committed
Check rendering of templates with all supported locales.
1 parent 27fa92a commit 488e028

File tree

4 files changed

+107
-48
lines changed

4 files changed

+107
-48
lines changed

crates/i18n/src/translator.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,8 @@ impl Translator {
345345

346346
/// Get a list of available locales.
347347
#[must_use]
348-
pub fn available_locales(&self) -> Vec<&DataLocale> {
349-
self.translations.keys().collect()
348+
pub fn available_locales(&self) -> Vec<DataLocale> {
349+
self.translations.keys().cloned().collect()
350350
}
351351

352352
/// Check if a locale is available.

0 commit comments

Comments
 (0)