feat: PWA Support (#1488)
This commit is contained in:
13
src/hooks/useLocale.ts
Normal file
13
src/hooks/useLocale.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { useContext } from 'react';
|
||||
import {
|
||||
LanguageContext,
|
||||
LanguageContextProps,
|
||||
} from '../context/LanguageContext';
|
||||
|
||||
const useLocale = (): Omit<LanguageContextProps, 'children'> => {
|
||||
const languageContext = useContext(LanguageContext);
|
||||
|
||||
return languageContext;
|
||||
};
|
||||
|
||||
export default useLocale;
|
||||
Reference in New Issue
Block a user