DEV: import I18n instead of global usage (#9768)

DEV: import I18n instead of global usage (#9768)

Co-authored-by: Mark VanLandingham markvanlan@gmail.com Co-authored-by: Robin Ward robin.ward@gmail.com

Co-authored-by: Mark VanLandingham markvanlan@gmail.com

diff --git a/app/assets/javascripts/admin/components/admin-backups-logs.js b/app/assets/javascripts/admin/components/admin-backups-logs.js
index 1837409..76c8cff 100644
--- a/app/assets/javascripts/admin/components/admin-backups-logs.js
+++ b/app/assets/javascripts/admin/components/admin-backups-logs.js
@@ -1,3 +1,4 @@
+import I18n from "I18n";
 import { scheduleOnce } from "@ember/runloop";
 import Component from "@ember/component";
 import discourseDebounce from "discourse/lib/debounce";
diff --git a/app/assets/javascripts/admin/components/admin-report-storage-stats.js b/app/assets/javascripts/admin/components/admin-report-storage-stats.js
index 61629c6..0be7256 100644
--- a/app/assets/javascripts/admin/components/admin-report-storage-stats.js
+++ b/app/assets/javascripts/admin/components/admin-report-storage-stats.js
@@ -1,3 +1,4 @@
+import I18n from "I18n";
 import discourseComputed from "discourse-common/utils/decorators";
 import { alias } from "@ember/object/computed";
 import Component from "@ember/component";
diff --git a/app/assets/javascripts/admin/components/admin-report.js b/app/assets/javascripts/admin/components/admin-report.js
index 352b92f..b9ce9a6 100644
--- a/app/assets/javascripts/admin/components/admin-report.js
+++ b/app/assets/javascripts/admin/components/admin-report.js
@@ -1,3 +1,4 @@
+import I18n from "I18n";
 import discourseComputed from "discourse-common/utils/decorators";
 import { makeArray } from "discourse-common/lib/helpers";
 import { alias, or, and, equal, notEmpty, not } from "@ember/object/computed";
diff --git a/app/assets/javascripts/admin/components/admin-user-field-item.js b/app/assets/javascripts/admin/components/admin-user-field-item.js
index a02404d..d59abe4 100644
--- a/app/assets/javascripts/admin/components/admin-user-field-item.js
+++ b/app/assets/javascripts/admin/components/admin-user-field-item.js
@@ -1,3 +1,4 @@
+import I18n from "I18n";
 import { isEmpty } from "@ember/utils";
 import { empty } from "@ember/object/computed";
 import { scheduleOnce } from "@ember/runloop";
diff --git a/app/assets/javascripts/admin/components/admin-watched-word.js b/app/assets/javascripts/admin/components/admin-watched-word.js
index d4f5108..28a1771 100644
--- a/app/assets/javascripts/admin/components/admin-watched-word.js
+++ b/app/assets/javascripts/admin/components/admin-watched-word.js
@@ -1,3 +1,4 @@
+import I18n from "I18n";
 import Component from "@ember/component";
 import { iconHTML } from "discourse-common/lib/icon-library";
 
diff --git a/app/assets/javascripts/admin/components/admin-web-hook-event-chooser.js b/app/assets/javascripts/admin/components/admin-web-hook-event-chooser.js
index a38695c..7e76d8f 100644
--- a/app/assets/javascripts/admin/components/admin-web-hook-event-chooser.js
+++ b/app/assets/javascripts/admin/components/admin-web-hook-event-chooser.js
@@ -1,3 +1,4 @@
+import I18n from "I18n";
 import discourseComputed from "discourse-common/utils/decorators";
 import { alias } from "@ember/object/computed";
 import Component from "@ember/component";
diff --git a/app/assets/javascripts/admin/components/admin-web-hook-event.js b/app/assets/javascripts/admin/components/admin-web-hook-event.js
index 365e22a..11bb2b4 100644
--- a/app/assets/javascripts/admin/components/admin-web-hook-event.js
+++ b/app/assets/javascripts/admin/components/admin-web-hook-event.js
@@ -1,3 +1,4 @@
+import I18n from "I18n";
 import discourseComputed from "discourse-common/utils/decorators";
 import Component from "@ember/component";
 import { ajax } from "discourse/lib/ajax";
diff --git a/app/assets/javascripts/admin/components/admin-web-hook-status.js b/app/assets/javascripts/admin/components/admin-web-hook-status.js
index 0c24edc..6c1591b 100644
--- a/app/assets/javascripts/admin/components/admin-web-hook-status.js
+++ b/app/assets/javascripts/admin/components/admin-web-hook-status.js
@@ -1,3 +1,4 @@
+import I18n from "I18n";
 import discourseComputed from "discourse-common/utils/decorators";
 import Component from "@ember/component";
 import { iconHTML } from "discourse-common/lib/icon-library";
diff --git a/app/assets/javascripts/admin/components/email-styles-editor.js b/app/assets/javascripts/admin/components/email-styles-editor.js
index ef5cdb0..93d4df6 100644
--- a/app/assets/javascripts/admin/components/email-styles-editor.js
+++ b/app/assets/javascripts/admin/components/email-styles-editor.js
@@ -1,3 +1,4 @@
+import I18n from "I18n";
 import discourseComputed from "discourse-common/utils/decorators";
 import { reads } from "@ember/object/computed";
 import Component from "@ember/component";
diff --git a/app/assets/javascripts/admin/components/embeddable-host.js b/app/assets/javascripts/admin/components/embeddable-host.js
index 1d853b8..cc96741 100644
--- a/app/assets/javascripts/admin/components/embeddable-host.js
+++ b/app/assets/javascripts/admin/components/embeddable-host.js
@@ -1,3 +1,4 @@
+import I18n from "I18n";
 import discourseComputed from "discourse-common/utils/decorators";
 import { isEmpty } from "@ember/utils";
 import { or } from "@ember/object/computed";
diff --git a/app/assets/javascripts/admin/components/inline-edit-checkbox.js b/app/assets/javascripts/admin/components/inline-edit-checkbox.js
index 2eb2c3e..2d68120 100644
--- a/app/assets/javascripts/admin/components/inline-edit-checkbox.js
+++ b/app/assets/javascripts/admin/components/inline-edit-checkbox.js
@@ -1,3 +1,4 @@
+import I18n from "I18n";
 import Component from "@ember/component";
 import discourseComputed, { observes } from "discourse-common/utils/decorators";
 
diff --git a/app/assets/javascripts/admin/components/ip-lookup.js b/app/assets/javascripts/admin/components/ip-lookup.js
index b27191d..d004555 100644
--- a/app/assets/javascripts/admin/components/ip-lookup.js
+++ b/app/assets/javascripts/admin/components/ip-lookup.js
@@ -1,3 +1,4 @@
+import I18n from "I18n";
 import EmberObject from "@ember/object";
 import { later } from "@ember/runloop";
 import Component from "@ember/component";
diff --git a/app/assets/javascripts/admin/components/penalty-post-action.js b/app/assets/javascripts/admin/components/penalty-post-action.js
index 9165464..aeea340 100644
--- a/app/assets/javascripts/admin/components/penalty-post-action.js
+++ b/app/assets/javascripts/admin/components/penalty-post-action.js
@@ -1,3 +1,4 @@
+import I18n from "I18n";
 import discourseComputed from "discourse-common/utils/decorators";
 import { equal } from "@ember/object/computed";
 import Component from "@ember/component";
diff --git a/app/assets/javascripts/admin/components/permalink-form.js b/app/assets/javascripts/admin/components/permalink-form.js
index e1b62a1..0a15f51 100644
--- a/app/assets/javascripts/admin/components/permalink-form.js
+++ b/app/assets/javascripts/admin/components/permalink-form.js
@@ -1,3 +1,4 @@
+import I18n from "I18n";
 import { schedule } from "@ember/runloop";
 import Component from "@ember/component";
 import discourseComputed from "discourse-common/utils/decorators";
diff --git a/app/assets/javascripts/admin/components/resumable-upload.js b/app/assets/javascripts/admin/components/resumable-upload.js
index 7425f17..ed95ea6 100644
--- a/app/assets/javascripts/admin/components/resumable-upload.js
+++ b/app/assets/javascripts/admin/components/resumable-upload.js
@@ -1,3 +1,4 @@
+import I18n from "I18n";
 import { later, schedule } from "@ember/runloop";
 import Component from "@ember/component";
 import { iconHTML } from "discourse-common/lib/icon-library";
diff --git a/app/assets/javascripts/admin/components/screened-ip-address-form.js b/app/assets/javascripts/admin/components/screened-ip-address-form.js
index 48b9264..1046f4c 100644
--- a/app/assets/javascripts/admin/components/screened-ip-address-form.js
+++ b/app/assets/javascripts/admin/components/screened-ip-address-form.js
@@ -1,3 +1,4 @@
+import I18n from "I18n";
 import discourseComputed from "discourse-common/utils/decorators";

[... diff too long, it was truncated ...]

GitHub sha: eab560fe

This commit appears in #9768 which was merged by eviltrout.

This commit has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/how-to-show-site-texts-strings-to-themes-and-theme-components/151927/5