From 2e5c04d2f6b98e09767727e1a41a38898ca9acf0 Mon Sep 17 00:00:00 2001 From: Jamie Guthrie Date: Thu, 17 Aug 2023 21:33:34 +0200 Subject: Remove localization fallback --- modern/src/common/components/LocalizationProvider.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modern/src/common') diff --git a/modern/src/common/components/LocalizationProvider.js b/modern/src/common/components/LocalizationProvider.js index 9c51841c..6bc64831 100644 --- a/modern/src/common/components/LocalizationProvider.js +++ b/modern/src/common/components/LocalizationProvider.js @@ -178,7 +178,7 @@ export const useLocalization = () => useContext(LocalizationContext); export const useTranslation = () => { const context = useContext(LocalizationContext); const { data } = context.languages[context.language]; - return useMemo(() => (key) => (data[key] ? data[key] : context.languages.en.data[key]), [data]); + return useMemo(() => (key) => data[key], [data]); }; export const useTranslationKeys = (predicate) => { -- cgit v1.2.3