diff --git a/src/base-i18n.js b/src/base-i18n.js index 7c48580e..5b62dde2 100644 --- a/src/base-i18n.js +++ b/src/base-i18n.js @@ -1,10 +1,12 @@ -import {I18N} from './i18n'; -import {DOM} from 'aurelia-pal'; -import {EventAggregator} from 'aurelia-event-aggregator'; +import { I18N } from './i18n'; +import { DOM } from 'aurelia-pal'; +import { EventAggregator } from 'aurelia-event-aggregator'; export class BaseI18N { - static inject = [I18N, DOM.Element, EventAggregator]; + static inject() { + return [I18N, DOM.Element, EventAggregator]; + } constructor(i18n, element, ea) { this.i18n = i18n; diff --git a/src/defaultTranslations/relative.time.js b/src/defaultTranslations/relative.time.js index 628417dd..fa855050 100644 --- a/src/defaultTranslations/relative.time.js +++ b/src/defaultTranslations/relative.time.js @@ -313,7 +313,7 @@ export const translations = { 'year_ago': '__count__ 年前', 'year_ago_plural': '__count__ 年前', 'year_in': 'あと __count__ 年', - 'year_in_plural': 'あと __count__ 年' + 'year_in_plural': 'あと __count__ 年' } }, jp: { diff --git a/src/t.js b/src/t.js index 03c294cb..49bd12ba 100644 --- a/src/t.js +++ b/src/t.js @@ -21,7 +21,9 @@ export class TValueConverter { @customAttribute('t-params') export class TParamsCustomAttribute { - static inject = [DOM.Element]; + static inject() { + return [DOM.Element]; + } static configureAliases(aliases) { let r = metadata.getOrCreateOwn(metadata.resource, HtmlBehaviorResource, TParamsCustomAttribute); r.aliases = aliases; @@ -40,7 +42,9 @@ export class TParamsCustomAttribute { @customAttribute('t') export class TCustomAttribute { - static inject = [DOM.Element, I18N, EventAggregator, LazyOptional.of(TParamsCustomAttribute)]; + static inject() { + return [DOM.Element, I18N, EventAggregator, LazyOptional.of(TParamsCustomAttribute)]; + } static configureAliases(aliases) { let r = metadata.getOrCreateOwn(metadata.resource, HtmlBehaviorResource, TCustomAttribute); r.aliases = aliases;