i18n-ally: No locale files loaded. Probably there is something wrong with your project config.

📣 By @antfu: If you found yourself facing the same warning, please browser the discussion in the following comments first. And if your problem didn’t get solved, please leave a comment with your workspace settings, i18n ally Output, and screenshots of your dir structure.

I would love to help but be sure to provide enough information! Thanks!


Describe the bug No locale files loaded. Probably there is something wrong with your project config.

Extension Version i18n Ally(2.0.9)

Framework/i18n package you are using vue-i18n

To Reproduce Steps to reproduce the behavior:

  1. open vscode
  2. The system pops up a dialog box
  3. No locale files loaded. Probably there is something wrong with your project config.

Device Infomation

  • OS: macOS 10.15.4
  • Version:
  • VS Code Version:1.44.2

Extension Log Go to View -> Output -> i18n Ally, and paste the content below. You should mask any sensitive information


Screenshots

image

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 22 (12 by maintainers)

Most upvoted comments

I was already using JSON files, so the fix above didn’t work. My directory structure is /src/i18n/languages/{locale}.json, and I am using vue-i18n.

What worked eventually was to remove all i18n-ally settings in User Settings (settings.json) and only add the following setting: "i18n-ally.pathMatcher": "{locale}.{ext}"

Now it works. Not quite what the migration guide specified, so hope it helps for anyone having the same problem!