import type { defaultLocale } from '$i18n/locales'; import type Locale from './Locale'; export type Translation = (params: { [key in keyof Params]: string }) => string; export type TranslationsDictionary = { readonly [key in keyof Raw]: { [locale in Locale]?: Translation[0]>; } & { [locale in typeof defaultLocale]: Translation[0]>; }; };