From 0c7d6f97fcf3ee9edb4e67a3c5f269435133528c Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Thu, 28 May 2020 13:06:06 +1000 Subject: [PATCH] Import I18n --- .../javascripts/discourse/components/wizard-custom-action.js.es6 | 1 + assets/javascripts/discourse/components/wizard-export.js.es6 | 1 + assets/javascripts/discourse/components/wizard-import.js.es6 | 1 + .../discourse/components/wizard-mapper-connector.js.es6 | 1 + .../discourse/components/wizard-mapper-selector.js.es6 | 1 + assets/javascripts/discourse/components/wizard-message.js.es6 | 1 + .../javascripts/discourse/components/wizard-text-editor.js.es6 | 1 + .../discourse/controllers/admin-wizards-api-show.js.es6 | 1 + .../discourse/controllers/admin-wizards-wizard-show.js.es6 | 1 + assets/javascripts/discourse/lib/wizard-mapper.js.es6 | 1 + .../discourse/routes/admin-wizards-wizard-show.js.es6 | 1 + 11 files changed, 11 insertions(+) diff --git a/assets/javascripts/discourse/components/wizard-custom-action.js.es6 b/assets/javascripts/discourse/components/wizard-custom-action.js.es6 index 205e3580..196bf328 100644 --- a/assets/javascripts/discourse/components/wizard-custom-action.js.es6 +++ b/assets/javascripts/discourse/components/wizard-custom-action.js.es6 @@ -6,6 +6,7 @@ import wizardSchema from '../lib/wizard-schema'; import UndoChanges from '../mixins/undo-changes'; import Component from "@ember/component"; import { notificationLevels } from '../lib/wizard'; +import I18n from "I18n"; export default Component.extend(UndoChanges, { componentType: 'action', diff --git a/assets/javascripts/discourse/components/wizard-export.js.es6 b/assets/javascripts/discourse/components/wizard-export.js.es6 index 2537511d..c75b745e 100644 --- a/assets/javascripts/discourse/components/wizard-export.js.es6 +++ b/assets/javascripts/discourse/components/wizard-export.js.es6 @@ -1,5 +1,6 @@ import Component from "@ember/component"; import { A } from "@ember/array"; +import I18n from "I18n"; export default Component.extend({ classNames: ['container', 'export'], diff --git a/assets/javascripts/discourse/components/wizard-import.js.es6 b/assets/javascripts/discourse/components/wizard-import.js.es6 index d844d5a6..446d2b00 100644 --- a/assets/javascripts/discourse/components/wizard-import.js.es6 +++ b/assets/javascripts/discourse/components/wizard-import.js.es6 @@ -2,6 +2,7 @@ import { ajax } from 'discourse/lib/ajax'; import { default as discourseComputed } from 'discourse-common/utils/decorators'; import { notEmpty } from "@ember/object/computed"; import Component from "@ember/component"; +import I18n from "I18n"; export default Component.extend({ classNames: ['container', 'import'], diff --git a/assets/javascripts/discourse/components/wizard-mapper-connector.js.es6 b/assets/javascripts/discourse/components/wizard-mapper-connector.js.es6 index d2903005..58203e51 100644 --- a/assets/javascripts/discourse/components/wizard-mapper-connector.js.es6 +++ b/assets/javascripts/discourse/components/wizard-mapper-connector.js.es6 @@ -4,6 +4,7 @@ import { computed } from "@ember/object"; import { defaultConnector } from '../lib/wizard-mapper'; import { later } from "@ember/runloop"; import { observes } from "discourse-common/utils/decorators"; +import I18n from "I18n"; export default Component.extend({ classNameBindings: [':mapper-connector', ':mapper-block', 'hasMultiple::single'], diff --git a/assets/javascripts/discourse/components/wizard-mapper-selector.js.es6 b/assets/javascripts/discourse/components/wizard-mapper-selector.js.es6 index b92ab4de..91af570b 100644 --- a/assets/javascripts/discourse/components/wizard-mapper-selector.js.es6 +++ b/assets/javascripts/discourse/components/wizard-mapper-selector.js.es6 @@ -6,6 +6,7 @@ import { defaultSelectionType, selectionTypes } from '../lib/wizard-mapper'; import { snakeCase, generateName, userProperties } from '../lib/wizard'; import Component from "@ember/component"; import { bind, later } from "@ember/runloop"; +import I18n from "I18n"; export default Component.extend({ classNameBindings: [':mapper-selector', 'activeType'], diff --git a/assets/javascripts/discourse/components/wizard-message.js.es6 b/assets/javascripts/discourse/components/wizard-message.js.es6 index 1f1c56ef..0592e9ca 100644 --- a/assets/javascripts/discourse/components/wizard-message.js.es6 +++ b/assets/javascripts/discourse/components/wizard-message.js.es6 @@ -1,5 +1,6 @@ import { default as discourseComputed } from 'discourse-common/utils/decorators'; import Component from "@ember/component"; +import I18n from "I18n"; export default Component.extend({ classNames: 'wizard-message', diff --git a/assets/javascripts/discourse/components/wizard-text-editor.js.es6 b/assets/javascripts/discourse/components/wizard-text-editor.js.es6 index 2b54b56c..25cf05e8 100644 --- a/assets/javascripts/discourse/components/wizard-text-editor.js.es6 +++ b/assets/javascripts/discourse/components/wizard-text-editor.js.es6 @@ -3,6 +3,7 @@ import { notEmpty } from "@ember/object/computed"; import { userProperties } from '../lib/wizard'; import { scheduleOnce } from "@ember/runloop"; import Component from "@ember/component"; +import I18n from "I18n"; export default Component.extend({ classNames: 'wizard-text-editor', diff --git a/assets/javascripts/discourse/controllers/admin-wizards-api-show.js.es6 b/assets/javascripts/discourse/controllers/admin-wizards-api-show.js.es6 index f449e19a..da6822a3 100644 --- a/assets/javascripts/discourse/controllers/admin-wizards-api-show.js.es6 +++ b/assets/javascripts/discourse/controllers/admin-wizards-api-show.js.es6 @@ -5,6 +5,7 @@ import { default as discourseComputed } from 'discourse-common/utils/decorators' import { not, and, equal } from "@ember/object/computed"; import { selectKitContent } from '../lib/wizard'; import Controller from "@ember/controller"; +import I18n from "I18n"; export default Controller.extend({ queryParams: ['refresh_list'], diff --git a/assets/javascripts/discourse/controllers/admin-wizards-wizard-show.js.es6 b/assets/javascripts/discourse/controllers/admin-wizards-wizard-show.js.es6 index 5f10283e..fd01f605 100644 --- a/assets/javascripts/discourse/controllers/admin-wizards-wizard-show.js.es6 +++ b/assets/javascripts/discourse/controllers/admin-wizards-wizard-show.js.es6 @@ -9,6 +9,7 @@ import { scheduleOnce, later } from "@ember/runloop"; import Controller from "@ember/controller"; import copyText from "discourse/lib/copy-text"; import CustomWizard from '../models/custom-wizard'; +import I18n from "I18n"; export default Controller.extend({ hasName: notEmpty('wizard.name'), diff --git a/assets/javascripts/discourse/lib/wizard-mapper.js.es6 b/assets/javascripts/discourse/lib/wizard-mapper.js.es6 index 1b54572c..6d179ef6 100644 --- a/assets/javascripts/discourse/lib/wizard-mapper.js.es6 +++ b/assets/javascripts/discourse/lib/wizard-mapper.js.es6 @@ -1,5 +1,6 @@ import EmberObject from "@ember/object"; import { A } from "@ember/array"; +import I18n from "I18n"; // Inputs diff --git a/assets/javascripts/discourse/routes/admin-wizards-wizard-show.js.es6 b/assets/javascripts/discourse/routes/admin-wizards-wizard-show.js.es6 index 5530ec33..f8dd8479 100644 --- a/assets/javascripts/discourse/routes/admin-wizards-wizard-show.js.es6 +++ b/assets/javascripts/discourse/routes/admin-wizards-wizard-show.js.es6 @@ -1,6 +1,7 @@ import CustomWizard from '../models/custom-wizard'; import { ajax } from 'discourse/lib/ajax'; import DiscourseRoute from "discourse/routes/discourse"; +import I18n from "I18n"; export default DiscourseRoute.extend({ model(params) {