intellij-emberjs
intellij-emberjs copied to clipboard
Missing Translation
I get a missing translation in all my templates. Completion works but the preview of translated string not.
![bildschirmfoto 2018-09-27 um 12 22 32](https://user-images.githubusercontent.com/7657474/46139972-26449080-c250-11e8-8837-9c54bcc33732.png)
can you reproduce this in a fresh new ember app?
@Turbo87 , I’ll do it next week when I’m back at office
Before I forget I use ember-intl
It could be caused by new ember-intl configs not using baseLocale
anymore.
The ember-intl code searches for its value https://github.com/Turbo87/intellij-emberjs/blob/master/src/main/kotlin/com/emberjs/translations/EmberIntlBaseLocaleFinder.kt#L12
With falling back through baseLocale, en-us
and en
it won't find the correct translation if the project uses a new ember-intl version wihtout having en-us or en translations in place.
@onceatime can you provide us with more information, i.e. ember-intl version and your ember-intl configuration?
If this is really the cause, I could open a PR to fallback through all configured intl locales
if that's ok.
Im knocked out this week. I’ll try to test it ASAP.ä when I’m back on track. But the configuration fallback sounds cool. The best solution or maybe as a separate module or feature could be a dialogue where the user can choose what translations should be used.
@makepanic my configuration is the default which comes with ember-intl (no changes).
emmber-intl version: 3.2.5