import type { IntlConfig } from "@formatjs/intl" ; export type Dictionary = IntlConfig [ "messages" ] ; export async function fetchTranslationDictionary ( locale ) { const response = await fetch ( `https://cdn.simplelocalize.io/${ process . env . NEXT_PUBLIC_SIMPLE_LOCALIZE_TOKEN }/_latest/${ locale }` ) ; const json = await response . json ( ) ; return json ; }