* refactor: move from next-international to next-intl * refactor: restructure translation package, * chore: change i18n-allay framework to next-intl * fix: add missing bold html tag to translation * fix: format issue * fix: address deepsource issues * fix: remove international-types dependency * fix: lint and typecheck issues * fix: typecheck issue * fix: typecheck issue * fix: issue with translations
6 lines
165 B
TypeScript
6 lines
165 B
TypeScript
import { useLocale } from "next-intl";
|
|
|
|
import type { SupportedLanguage } from "../config";
|
|
|
|
export const useCurrentLocale = () => useLocale() as SupportedLanguage;
|