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

Some translations in Next app not working #8

Closed nareshbhatia closed 6 months ago

nareshbhatia commented 6 months ago

🐛 Bug Report

I have implemented 6 translations in my app using the guidance in this example: en, de, ar, es, hi, it. Only en & de are working. When I switch to the other 4, the page shows English – the translations are not being picked up. There is nothing special about the setup for these 4 languages. They are identical to English & German setup.

To Reproduce

A minimal reproducible example. Please see README for build instructions.

Expected behavior

All languages should translate correctly.

Your Environment

adrai commented 6 months ago

just rename the translation files:

image

it's translation.json not translations.json

nareshbhatia commented 6 months ago

OMG! I feel so silly. Thank you so much for pointing this out, @adrai.