mirror of
https://github.com/TriliumNext/Trilium.git
synced 2025-12-10 03:53:37 -06:00
fix(client/options): dev locale showing in prod
This commit is contained in:
parent
cdde69cc7c
commit
1d583a2d1f
@ -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;
|
||||
})
|
||||
]
|
||||
}
|
||||
}, []);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user