From 1d583a2d1fdcc95b663eae1f56b736ce16c2b447 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Tue, 21 Oct 2025 17:21:01 +0300 Subject: [PATCH] fix(client/options): dev locale showing in prod --- apps/client/src/widgets/type_widgets/options/i18n.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/client/src/widgets/type_widgets/options/i18n.tsx b/apps/client/src/widgets/type_widgets/options/i18n.tsx index 36a0a1100..2804f25e5 100644 --- a/apps/client/src/widgets/type_widgets/options/i18n.tsx +++ b/apps/client/src/widgets/type_widgets/options/i18n.tsx @@ -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; + }) ] } }, []);