mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
fix(client/options): dev locale showing in prod
This commit is contained in:
@@ -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;
|
||||
})
|
||||
]
|
||||
}
|
||||
}, []);
|
||||
|
||||
Reference in New Issue
Block a user