(fix) use for-of instead of for-in

This commit is contained in:
Valentyne Stigloher 2024-01-29 15:19:56 +01:00
parent 999281fea9
commit 760636ad2f

View File

@ -36,7 +36,7 @@ export default ({ app, store }) => {
if (app.$config.locale !== '_') {
yield [app.$config.locale, process.env.LOCALES[app.$config.locale]];
}
for (const [locale, localeDescription] in Object.entries(process.env.LOCALES)) {
for (const [locale, localeDescription] of Object.entries(process.env.LOCALES)) {
if (locale !== app.$config.locale) {
yield [locale, localeDescription];
}