mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 07:01:13 +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 QUnit, { module, test } from "qunit";
|
||||
import I18n from "discourse-i18n";
|
||||
import { i18n } from 'discourse-i18n';
|
||||
import freezeTime from "../helpers/freeze-time";
|
||||
import LocalDateBuilder from "../lib/local-date-builder";
|
||||
|
||||
@ -283,7 +283,7 @@ module("Unit | Library | local-date-builder", function () {
|
||||
timezone: PARIS,
|
||||
},
|
||||
{
|
||||
formatted: I18n.t(
|
||||
formatted: i18n(
|
||||
"discourse_local_dates.relative_dates.countdown.passed"
|
||||
),
|
||||
},
|
||||
|
Reference in New Issue
Block a user