Open ghost opened 5 years ago
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
I get a missing translation in all my templates. Completion works but the preview of translated string not.