fix: canonicalize widget date locales

This commit is contained in:
Thomas Camlong authored and ajnart committed 2026-08-13 19:54:42 +02:00
1 parent d7083fc14c
commit d880c4a281
9 files changed
+39 -11

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@ import type { SupportedLanguage } from "../config";
import type englishTranslation from "../lang/en.json";
export { useChangeLocale } from "./use-change-locale";
export { useCurrentLocale } from "./use-current-locale";
export { useCurrentIntlLocale, useCurrentLocale } from "./use-current-locale";
declare module "next-intl" {
interface AppConfig {
@@ -1,3 +1,7 @@
import { useLocale } from "next-intl";
import { getIntlLocale } from "../config";
export const useCurrentLocale = useLocale;
export const useCurrentIntlLocale = () => getIntlLocale(useLocale());