Skip to content

Commit

Permalink
Remove localization fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
jguthrie100 committed Aug 17, 2023
1 parent 49da8a2 commit 2e5c04d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modern/src/common/components/LocalizationProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 2e5c04d

Please sign in to comment.