From b2fb35acc057de853270bcbe384eeaae6127f841 Mon Sep 17 00:00:00 2001 From: Quentin Date: Mon, 15 Jan 2024 23:42:03 +0100 Subject: [PATCH] style: prettify code --- .../src/app/client/create-i18n-provider-client.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/next-international/src/app/client/create-i18n-provider-client.tsx b/packages/next-international/src/app/client/create-i18n-provider-client.tsx index 84be05d..93bef09 100644 --- a/packages/next-international/src/app/client/create-i18n-provider-client.tsx +++ b/packages/next-international/src/app/client/create-i18n-provider-client.tsx @@ -24,7 +24,10 @@ export function createI18nProviderClient( fallbackLocale?: Record, ) { function I18nProvider({ locale, importLocale, children }: I18nProviderProps) { - const clientLocale = (localesCache.get(locale) ?? localesCache.set(locale, use(importLocale).default)) as Record; + const clientLocale = (localesCache.get(locale) ?? localesCache.set(locale, use(importLocale).default)) as Record< + string, + unknown + >; const value = useMemo( () => ({