[Vuejs]-TypeScript: implicitly has an 'any' type because expression of type 'string' can't be used to index type

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>;
}

demo

Leave a comment