mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 00:32:52 +08:00
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:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user