DEV: Import `I18n` in standard plugins (#10098)
This commit is contained in:
parent
d04234c667
commit
26260d50b1
|
@ -1,3 +1,4 @@
|
||||||
|
import I18n from "I18n";
|
||||||
import { withPluginApi } from "discourse/lib/plugin-api";
|
import { withPluginApi } from "discourse/lib/plugin-api";
|
||||||
|
|
||||||
function initializeDetails(api) {
|
function initializeDetails(api) {
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import I18n from "I18n";
|
||||||
import EmberObject from "@ember/object";
|
import EmberObject from "@ember/object";
|
||||||
import { isEmpty } from "@ember/utils";
|
import { isEmpty } from "@ember/utils";
|
||||||
import { schedule } from "@ember/runloop";
|
import { schedule } from "@ember/runloop";
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import I18n from "I18n";
|
||||||
import DateWithZoneHelper from "./date-with-zone-helper";
|
import DateWithZoneHelper from "./date-with-zone-helper";
|
||||||
|
|
||||||
const TIME_FORMAT = "LLL";
|
const TIME_FORMAT = "LLL";
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import I18n from "I18n";
|
||||||
import { withPluginApi } from "discourse/lib/plugin-api";
|
import { withPluginApi } from "discourse/lib/plugin-api";
|
||||||
|
|
||||||
function initializeInternetExplorerDeprecation(api) {
|
function initializeInternetExplorerDeprecation(api) {
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import I18n from "I18n";
|
||||||
import Controller from "@ember/controller";
|
import Controller from "@ember/controller";
|
||||||
import discourseComputed, { observes } from "discourse-common/utils/decorators";
|
import discourseComputed, { observes } from "discourse-common/utils/decorators";
|
||||||
import EmberObject from "@ember/object";
|
import EmberObject from "@ember/object";
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
/*eslint no-bitwise:0 */
|
/*eslint no-bitwise:0 */
|
||||||
|
import I18n from "I18n";
|
||||||
|
|
||||||
const DATA_PREFIX = "data-poll-";
|
const DATA_PREFIX = "data-poll-";
|
||||||
const DEFAULT_POLL_NAME = "poll";
|
const DEFAULT_POLL_NAME = "poll";
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import I18n from "I18n";
|
||||||
import { createWidget } from "discourse/widgets/widget";
|
import { createWidget } from "discourse/widgets/widget";
|
||||||
import { h } from "virtual-dom";
|
import { h } from "virtual-dom";
|
||||||
import { iconNode } from "discourse-common/lib/icon-library";
|
import { iconNode } from "discourse-common/lib/icon-library";
|
||||||
|
|
Loading…
Reference in New Issue