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

@ -2,7 +2,7 @@ import { render } from "@ember/test-helpers";
import hbs from "htmlbars-inline-precompile";
import { module, test } from "qunit";
import { setupRenderingTest } from "discourse/tests/helpers/component-test";
import I18n from "discourse-i18n";
import { i18n } from 'discourse-i18n';
import ChatChannel from "discourse/plugins/chat/discourse/models/chat-channel";
module(
@ -17,7 +17,7 @@ module(
await render(hbs`<ChatRetentionReminder @channel={{this.channel}} />`);
assert.dom(".chat-retention-reminder").includesText(
I18n.t("chat.retention_reminders.long", {
i18n("chat.retention_reminders.long", {
count: this.siteSettings.chat_channel_retention_days,
})
);
@ -32,7 +32,7 @@ module(
);
assert.dom(".chat-retention-reminder").includesText(
I18n.t("chat.retention_reminders.short", {
i18n("chat.retention_reminders.short", {
count: this.siteSettings.chat_channel_retention_days,
})
);