next-translate icon indicating copy to clipboard operation
next-translate copied to clipboard

Type 'string[]' is not assignable to type 'string | I18nDictionary'.

Open mkbctrl opened this issue 3 years ago • 1 comments

What version of this package are you using? 1.5.0

What operating system, Node.js, and npm version? MacOS, Node 16.16, yarn 1.22

What happened? Screenshot 2022-09-21 at 17 16 23

What did you expect to happen? I would expect the provider to allow array of strings if one is specified inside the .json file.

Inside it I have is a simple array with strings:

{
  "myArray": [
    "string 1",
    "string 2"
  ]
}

Are you willing to submit a pull request to fix this bug? Sure, if the author won't have the time to do that. Since it looks like a minor issue I guess it will take me more time to setup the dev env than to actually fix it, but if we confirm it's an issue I am happy to help

mkbctrl avatar Sep 21 '22 15:09 mkbctrl

Feel free to PR

aralroca avatar Sep 21 '22 15:09 aralroca