0👍
✅
Languages
is typed as { en: object }
, but I suspect you want it to be a string dictionary, which can be typed like this:
type Languages = {
[locale: string]: Record<string, string>;
}
Source:stackexchange.com