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