mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 13:26:01 +01:00
fix(client/options): dev locale showing in prod
This commit is contained in:
@@ -33,7 +33,11 @@ function LocalizationOptions() {
|
|||||||
return true;
|
return true;
|
||||||
}),
|
}),
|
||||||
formattingLocales: [
|
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