i18next / next-app-dir-i18next-example-ts

Next.js 13/14 app directory feature in combination with i18next
https://locize.com/blog/next-app-dir-i18n/
117 stars 29 forks source link

i18next type-safe intelligence is not working with i18next@23.4.6, but it works with i18next@22.4.14. #4

Closed ShihTingJustin closed 1 year ago

ShihTingJustin commented 1 year ago

🐛 Bug Report

I found that type-safe intelligence is not working with i18next@23.4.6 after cloned this sample repo and installed it. image

But it works with i18next@22.4.14.

image

To Reproduce

npm i i18next@23.4.6
npm i i18next@22.4.14

Expected behavior

Using i18n key with type-safe intelligence.

Your Environment

adrai commented 1 year ago

Which editor do you use? Make sure you update your typescript dependency: https://github.com/i18next/react-i18next/issues/1666

ShihTingJustin commented 1 year ago

Which editor do you use? Make sure you update your typescript dependency: i18next/react-i18next#1666

I used VS Code@1.73.0, and typescript@5.1.6 (as same as this repo) at first. After I update to VS Code@1.81.1 and it works!