fix(client/options): dev locale showing in prod

This commit is contained in:
Elian Doran 2025-10-21 17:21:01 +03:00
parent cdde69cc7c
commit 1d583a2d1f
No known key found for this signature in database

View File

@ -33,7 +33,11 @@ function LocalizationOptions() {
return true;
}),
formattingLocales: [
...allLocales.filter(locale => locale.electronLocale)
...allLocales.filter(locale => {
if (!locale.electronLocale) return false;
if (locale.devOnly && !glob.isDev) return false;
return true;
})
]
}
}, []);