question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Application translations DOES NOT override addon translations

See original GitHub issue
  • I am on the latest ember-intl version
  • I have searched the issues of this repo and believe that this is not a duplicate

Environment

  • Ember Version: 3.12.1
  • Ember CLI Version: 3.12.0
  • Ember Intl Version: 4.2.0
  • Browser(s): Chrome
  • Node Version: v10.16.3

Steps to Reproduce

  • Create an empty app, add ember-intl add-on
  • Create 2 empty add-on, called “aaaa” & the other “zzzz”
  • Add ember-intl in the 2 add-ons
  • Create a translation called “aaaa_translation” in translations/en-us.yaml of “aaaa” add-on
  • Create a translation called “zzzz_translation” in translations/en-us.yaml of “zzzz” add-on
  • yarn/npm link the add-ons with the app & add it in package.json of the application
  • Override “aaaa_translation” & “zzzz_translation” in in translations/en-us.yaml of the application
  • ember serve

image

It seems that the translations files are not correctly merged. Here a dump of listFiles from the reduce function in lib/broccoli/translation-reducer/index.js :

[ '/tmp/broccoli-54539WABk1c5bWG3/out-229-funnel/aaaa/en-us.yaml',
  '/tmp/broccoli-54539WABk1c5bWG3/out-229-funnel/en-us.yaml',
  '/tmp/broccoli-54539WABk1c5bWG3/out-229-funnel/fr-fr.yaml',
  '/tmp/broccoli-54539WABk1c5bWG3/out-229-funnel/zzzz/en-us.yaml' ]

en-us.yaml from “zzzz” add-on always override the en-us.yaml from application.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
romgerecommented, Nov 27, 2019

Fixed in 4.2.2 🎉 Thank you

0reactions
jasonmitcommented, Nov 27, 2019

Should be fixed in v4.2.2 please reopen a new issue if it continues.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Allow synced Layout override Translations - Drupal
If block_content entities are not translatable. When creating the translate layout field override duplicate the block so it is new entity. This ...
Read more >
Why are some items not translated in Odoo? - Stack Overflow
Go to Settings > Translations > Load a Translation, select your language and check the box Overwrite Existing Terms, then click on Load...
Read more >
Translations (.po files) not updating? - Odoo
Another solution is to manually re-import the changed .po file from Settings => Translations => Import/Export => Import Translation. In some cases the...
Read more >
Working with Translation Files - Business Central
How to work with translations, multilanguage, and XLIFF files in Business Central.
Read more >
translation Language Override Loading - WHMCS.Community
Hi guys, i translated few content on my whmcs theme installation by ... No sure why override content does not load at first...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found