1
0
mirror of https://github.com/upscayl/upscayl.git synced 2025-02-16 10:52:38 +01:00
upscayl/renderer/components/hooks/use-translation.ts
Nayam Amarshe b39d23c2ff Refactor and Update Code
- Change file names to kebab-caase
- Add new useTranslation Hook
- Change useLog hook name to useLogger
- Update translation hook to provide autocomplete
2024-09-25 07:32:56 +05:30

10 lines
221 B
TypeScript

import { translationAtom } from "@/atoms/translations-atom";
import { useAtomValue } from "jotai";
const useTranslation = () => {
const t = useAtomValue(translationAtom);
return t;
};
export default useTranslation;