i18nPlugin icon indicating copy to clipboard operation
i18nPlugin copied to clipboard

"Missing default translation file" warning all over Vue project since Rider 2021.1 EAP

Open cypressious opened this issue 3 years ago • 14 comments

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:

grafik

cypressious avatar Mar 07 '21 15:03 cypressious

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?

FPDK avatar Mar 12 '21 13:03 FPDK

All the 2021.1 versions are now released. Any change to get this looked at?

cypressious avatar Apr 20 '21 14:04 cypressious

Facing the same issue, is there any solution? Intellij version IntelliJ IDEA 2021.1.1 (Ultimate Edition)

cb-adarsh avatar May 25 '21 10:05 cb-adarsh

Same issue for WebStorm 2021.1.2 (Build #WS-211.7442.26, built on May 24, 2021)

marko-lorentz avatar Jun 03 '21 09:06 marko-lorentz

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. Screenshot 2021-07-22 at 13 59 00

blazpavlica avatar Jul 22 '21 11:07 blazpavlica

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.

SteamWind avatar Jul 26 '21 08:07 SteamWind

@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 avatar Aug 01 '21 06:08 nyavro

@nyavro the problem appears regardless of whether "Support vue namespaces" is checked.

cypressious avatar Aug 01 '21 10:08 cypressious

image image In my case, just check the option "Vue-i18n" works perfectly.

meatjam avatar Oct 08 '21 08:10 meatjam

I can't get it to work on Vue 3

LifeIsStrange avatar Oct 25 '21 10:10 LifeIsStrange

@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.

frankykubo avatar Oct 29 '21 08:10 frankykubo

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",
}

Screenshot_20220605_173038

CaliforniaMountainSnake avatar Jun 05 '22 14:06 CaliforniaMountainSnake

@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.

ErikBrendel avatar Aug 01 '23 15:08 ErikBrendel