DEV: Consolidate i18n import paths (#29804)

Enables our new eslint rules which enforce consistent i18n imports. For more info, see 0d58b40cd7
This commit is contained in:
David Taylor
2024-11-19 20:45:18 +00:00
committed by GitHub
parent 187b7d74fb
commit 32665cf9dd
909 changed files with 3453 additions and 3591 deletions

View File

@ -1,5 +1,5 @@
/*eslint no-bitwise:0 */
import I18n from "discourse-i18n";
import { i18n } from "discourse-i18n";
const DATA_PREFIX = "data-poll-";
const DEFAULT_POLL = { name: "poll", status: "open" };
@ -97,7 +97,7 @@ function addPollInfo(state) {
token.block = false;
token = state.push("text", "", 0);
token.content = I18n.t("poll.voters", { count: 0 });
token.content = i18n("poll.voters", { count: 0 });
state.push("poll_info_label_close", "span", -1);
state.push("poll_info_counts_count_close", "div", -1);