lokalise / i18n-ally

🌍 All in one i18n extension for VS Code
https://marketplace.visualstudio.com/items?itemName=lokalise.i18n-ally
MIT License
3.91k stars 309 forks source link

Cannot detect split translation files under folders #1008

Open Toshinaki opened 1 year ago

Toshinaki commented 1 year ago

Describe the bug

I use this vscode plugin in my React project. I have multiple translation files under folders like en/common.json, zh/common.json, to split one big json file into maintainable small files. But the code below says key does not exist:

const { t } = useTranslation("common");
t("key1")

Though the autocomplete works.

Extension Version

v2.11.1

Framework/i18n package you are using

react-i18next

Device Infomation

Extension Log

...
Loading (en) en/common.json
Loading (zh) zh/common.json
...
Vujovic commented 1 year ago

Same issue

J4v4Scr1pt commented 11 months ago

Just found this exstension, it's suuper awesome, when it works.. 😄.

I have the same issue as above. It works only if I use the dot notation common.key1

Don't know how to make it work, but a fix for this would be awesome!

Using next-translate fyi.

jpainam commented 4 months ago

same issue

Chealer commented 3 weeks ago

This works fine for me on 1.92.0. Which VS Code version do you use?