i18nPlugin
i18nPlugin copied to clipboard
"Missing default translation file" warning all over Vue project since Rider 2021.1 EAP
I'm using
JetBrains Rider 2021.1 EAP 6 Build #RD-211.6305.3, built on March 3, 2021
and in my Vue project that was working fine on 2020.3, I'm now getting "Missing default translation file" warnings all over the place. See the following screenshot for an example:
I am having the same issue in PhpStorm 2020.3.2 (Build #PS-203.7148.74, built on January 27, 2021) in a React.js project.
My translations are in: public/locales/{language}/{namespace}.json
Update: Plugin version 2.6.0 seems to be causing an issue. It works fine on 2.5.0. Could it be the vue support update?
All the 2021.1 versions are now released. Any change to get this looked at?
Facing the same issue, is there any solution? Intellij version IntelliJ IDEA 2021.1.1 (Ultimate Edition)
Same issue for WebStorm 2021.1.2 (Build #WS-211.7442.26, built on May 24, 2021)
I'm having the same problem in a Vue project, I tried downgrading the plugin to 2.5, but the warnings persist. Anyone had any luck fixing this?
WebStorm 2021.1.3 Build #WS-211.7628.25, built on June 30, 2021 macOS 10.15.7
UPDATE!: the problem was actually in the plugin settings ( Tools > I18n Plugin Configuration ). I had to set vue locales directory to my correct one. And also upgrade back to 2.6 since it has Vue-i18n support. Hope this helps someone.
Okay, I had the same troubles but it seems that you don't need to point the Vue locales directory to src/yourLangDir
. Just put yourLangDir
in this input.
@marko-lorentz @cb-adarsh @cypressious do you still experience the problem? This message may appear only if you have option "Support vue namespaces" checked.
@nyavro the problem appears regardless of whether "Support vue namespaces" is checked.
In my case, just check the option "Vue-i18n" works perfectly.
I can't get it to work on Vue 3
@LifeIsStrange
I can't get it to work on Vue 3
I develop Vue 3 app in PHPStorm. If you go to settings -> plugins, download "Easy I18n", disable "i18n support". After that, a new menu item appears in bottom PHPStorm bar, next to terminal. Click on it, on top left click the configure icon, configure locales directory etc. and you are done. Working like a charm.
I have the same issue. What is a default translation file
? There is even no such term in the i18next
documentation.
I have i18n.ts
file that contains translations.
i18n support
plugin version: 2.6.1
Versions of the libs:
{
"i18next": "^21.8.8",
"react-i18next": "^11.17.0",
}
@CaliforniaMountainSnake I solved this by making sure the files can be found in public/locales/{lang}/translation.json
, then the plugin works for me. Since I want to manage my files in src/
and not public, I used a symlink to achieve this.
Found the solution here in the example: https://github.com/nyavro/i18nPlugin/tree/HEAD/examples/react-i18n-using-hooks
But I do think that the plugin should offer a setting for telling it where to find the translation files. I use the i18next-extract
babel plugin, and instruct it to put the translation files at src/locales/{{locale}}.json
, and it would be nice if this IDE plugin could be configured similarly.