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.

Issues with migrating from ember-i18n

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.0.0
  • Ember CLI Version: 3.0.0
  • Ember Intl Version: 4.0.0-beta.9
  • Browser(s): Chrome
  • Node Version: 8.11.4

Steps to Reproduce

We have a translation that is bound to a variable. Something like {{t company.status}} If company.status is undefined, ember-intl will throw an error, as per https://github.com/ember-intl/ember-intl/blob/89009718cb36ebfce0b2783e9aff05702d9f6431/addon/helpers/-format-base.js#L36

I’m curious why we are so strict here? It might be nice to allow for undefined values via a global allowEmpty flag, rather than passing allowEmpty=true into each helper. There should at least be a way to disable this check when running tests, in case your test environment does not have 100% parity with your real app, and is missing a variable.

Another issue, is we use ember-cli-accounting, which provides a format-number helper. The one from ember-intl clobbers it, since they have the same name. It would be nice to allow whitelisting and blacklisting, so we could decide which helpers to include.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
jasonmitcommented, Jun 17, 2019

Yes that makes sense to me. I’ll plan to s/format/intl in the helper names and deprecate the existing names.

0reactions
rwwagner90commented, Jun 17, 2019

I believe this is eventually fixed with module unification

For sure, but module unification may be a very long time and even when it drops, it will take users awhile to update, so it might be good to guard against this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Migrating from ember-i18n to ember-intl - Questions
I decided to migrate from deprecated ember-i18 to a new ember-intl. After transforming the old translation files with a provided migrator, ...
Read more >
Troubleshoot migration issues in Exchange hybrid
This article troubleshoots the following issues: Problem moving a mailbox from an on-premises Exchange Server environment to Exchange Online ...
Read more >
8 Cloud Migration Challenges and Problems
Why Businesses Are Willing to Face Cloud Data Migration Challenges · Mobility · Cost Savings · Flexibility · Disaster recovery · Scalability ·...
Read more >
Known issues when migrating to Manifest V3
This page lists major known issues that affect developers as they migrate to Manifest V3. Known issues are divided into two primary groups:....
Read more >
Top 10 Migration Issues of 2020 | migrationpolicy.org
In 2020 the COVID-19 pandemic brought a sweeping halt to global migration and mobility, leading to far-reaching consequences for migrants and countries at ......
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