Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cypressious opened this issue Mar 7, 2021 · 13 comments

Comments

@cypressious
Copy link
Contributor

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

@FPDK
Copy link

FPDK commented Mar 12, 2021

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?

@cypressious
Copy link
Contributor Author

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

@cb-adarsh
Copy link

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

@marko-lorentz
Copy link

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

@blazpavlica
Copy link

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

@SteamWind
Copy link

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.

@nyavro
Copy link
Owner

nyavro commented Aug 1, 2021

@marko-lorentz @cb-adarsh @cypressious do you still experience the problem?
This message may appear only if you have option "Support vue namespaces" checked.

@cypressious
Copy link
Contributor Author

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

@meatjam
Copy link

meatjam commented Oct 8, 2021

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

@LifeIsStrange
Copy link

I can't get it to work on Vue 3

@frankykubo
Copy link

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

@CaliforniaMountainSnake
Copy link

CaliforniaMountainSnake commented Jun 5, 2022

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

@ErikBrendel
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests