From 0e6fcfdd4c7ecb8beca9c0b815933857d4333c7a Mon Sep 17 00:00:00 2001 From: Wesley Workman Date: Mon, 29 Aug 2016 21:05:20 -0400 Subject: [PATCH] Added an `until` property when calling `Ember.deprecate`. This resolves deprecation warnings seen with Ember 2.8. --- addon/services/i18n.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/addon/services/i18n.js b/addon/services/i18n.js index 771bd3e0..a9cc7e9b 100644 --- a/addon/services/i18n.js +++ b/addon/services/i18n.js @@ -23,11 +23,13 @@ export default Parent.extend(Evented, { // in the current `locale`. t(key, data = {}) { Ember.deprecate('locale is a reserved attribute', !data.hasOwnProperty('locale'), { - id: 'ember-i18n.reserve-locale' + id: 'ember-i18n.reserve-locale', + until: '5.0.0' }); Ember.deprecate('htmlSafe is a reserved attribute', !data.hasOwnProperty('htmlSafe'), { - id: 'ember-i18n.reserve-htmlSafe' + id: 'ember-i18n.reserve-htmlSafe', + until: '5.0.0' }); const locale = this.get('_locale');