mirror of
https://github.com/discourse/discourse.git
synced 2025-05-26 07:41:43 +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:
@ -2,7 +2,7 @@ import Component from "@glimmer/component";
|
||||
import { tracked } from "@glimmer/tracking";
|
||||
import { action } from "@ember/object";
|
||||
import { extractError } from "discourse/lib/ajax-error";
|
||||
import I18n from "discourse-i18n";
|
||||
import { i18n } from "discourse-i18n";
|
||||
import AdminUser from "admin/models/admin-user";
|
||||
|
||||
export default class DeleteUserPostsProgress extends Component {
|
||||
@ -36,7 +36,7 @@ export default class DeleteUserPostsProgress extends Component {
|
||||
AdminUser.find(this.args.model.user.id).then((u) =>
|
||||
this.args.model.user.setProperties(u)
|
||||
);
|
||||
this.flash = extractError(e, I18n.t("admin.user.delete_posts_failed"));
|
||||
this.flash = extractError(e, i18n("admin.user.delete_posts_failed"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user