We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27fa92a commit 488e028Copy full SHA for 488e028
crates/i18n/src/translator.rs
@@ -345,8 +345,8 @@ impl Translator {
345
346
/// Get a list of available locales.
347
#[must_use]
348
- pub fn available_locales(&self) -> Vec<&DataLocale> {
349
- self.translations.keys().collect()
+ pub fn available_locales(&self) -> Vec<DataLocale> {
+ self.translations.keys().cloned().collect()
350
}
351
352
/// Check if a locale is available.
0 commit comments