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 @@
import { performEmojiUnescape } from "pretty-text/emoji";
import I18n from "discourse-i18n";
import { i18n } from "discourse-i18n";
let customMarkdownCookFn;
@ -47,7 +47,7 @@ const chatTranscriptRule = {
lazy: true,
});
channelToken.content = I18n.t("chat.quote.original_channel", {
channelToken.content = i18n("chat.quote.original_channel", {
channel: unescapedChannelName,
channelLink,
});
@ -97,7 +97,7 @@ const chatTranscriptRule = {
});
threadTitleToken.content = unescapedThreadTitle
? unescapedThreadTitle
: I18n.t("chat.quote.default_thread_title");
: i18n("chat.quote.default_thread_title");
state.push("span_thread_title_close", "span", -1);