diff options
author | Jamie Guthrie <jamie.guthrie@gmail.com> | 2023-08-17 21:33:34 +0200 |
---|---|---|
committer | Jamie Guthrie <jamie.guthrie@gmail.com> | 2023-08-17 21:33:34 +0200 |
commit | 2e5c04d2f6b98e09767727e1a41a38898ca9acf0 (patch) | |
tree | c5b9fab653c1fd65463c67188dda5f4af8be6af9 /modern/src | |
parent | 49da8a2addd3febb2463a69a99c6007c7a11051a (diff) | |
download | trackermap-web-2e5c04d2f6b98e09767727e1a41a38898ca9acf0.tar.gz trackermap-web-2e5c04d2f6b98e09767727e1a41a38898ca9acf0.tar.bz2 trackermap-web-2e5c04d2f6b98e09767727e1a41a38898ca9acf0.zip |
Remove localization fallback
Diffstat (limited to 'modern/src')
-rw-r--r-- | modern/src/common/components/LocalizationProvider.js | 2 |
1 files changed, 1 insertions, 1 deletions
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) => { |