i18n-ally icon indicating copy to clipboard operation
i18n-ally copied to clipboard

Cannot detect split translation files under folders

Open Toshinaki opened this issue 10 months ago • 3 comments

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

  • OS: windows
  • Version: 10
  • VS Code Version: latest

Extension Log

...
Loading (en) en/common.json
Loading (zh) zh/common.json
...

Toshinaki avatar Sep 06 '23 15:09 Toshinaki