Cropster / ember-l10n

A GNU gettext based localization workflow for Ember
MIT License
15 stars 7 forks source link

Stop using assign from @ember/polyfills #110

Open ablanco opened 10 months ago

ablanco commented 10 months ago

There is one file in the project that keeps using the old assign polyfill. I've been having issues using this package in an Ember 5.4 project. I get this exception:

Uncaught Error: Could not find module `@ember/polyfills` imported from `ember-l10n/services/l10n`

From the Ember deprecation guides:

Use of Ember.assign is deprecated. You should replace any calls to Ember.assign with Object.assign or use the object spread operator.

https://deprecations.emberjs.com/v4.x/#toc_ember-polyfills-deprecate-assign