You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
overseerr/src/hooks/useLocale.ts

12 lines
353 B

import type { LanguageContextProps } from '@app/context/LanguageContext';
import { LanguageContext } from '@app/context/LanguageContext';
import { useContext } from 'react';
const useLocale = (): Omit<LanguageContextProps, 'children'> => {
const languageContext = useContext(LanguageContext);
return languageContext;
};
export default useLocale;