diff --git a/extensions/mentions/js/forum/src/addComposerAutocomplete.js b/extensions/mentions/js/forum/src/addComposerAutocomplete.js
index bb8caa4fb..1ba2d6d6e 100644
--- a/extensions/mentions/js/forum/src/addComposerAutocomplete.js
+++ b/extensions/mentions/js/forum/src/addComposerAutocomplete.js
@@ -108,7 +108,7 @@ export default function addComposerAutocomplete() {
const user = post.user();
suggestions.push(
makeSuggestion(user, '@' + user.username() + '#' + post.id(), [
- app.trans('flarum-mentions.forum.reply_to_post', {number: post.number()}), ' — ',
+ app.translator.trans('flarum-mentions.forum.reply_to_post', {number: post.number()}), ' — ',
truncate(post.contentPlain(), 200)
], 'MentionsDropdown-post')
);
diff --git a/extensions/mentions/js/forum/src/addMentionedByList.js b/extensions/mentions/js/forum/src/addMentionedByList.js
index 01d897512..d01755273 100644
--- a/extensions/mentions/js/forum/src/addMentionedByList.js
+++ b/extensions/mentions/js/forum/src/addMentionedByList.js
@@ -91,7 +91,7 @@ export default function addMentionedByList() {
config={m.route}
onclick={hidePreview}
data-number={reply.number()}>
- {app.session.user === user ? app.trans('flarum-mentions.forum.you') : username(user)}
+ {app.session.user === user ? app.translator.trans('flarum-mentions.forum.you') : username(user)}
);
});
@@ -100,7 +100,7 @@ export default function addMentionedByList() {
{icon('reply')}
- {app.trans('flarum-mentions.forum.post_mentioned_by', {
+ {app.translator.trans('flarum-mentions.forum.post_mentioned_by', {
count: names.length,
users: punctuateSeries(names)
})}
diff --git a/extensions/mentions/js/forum/src/addPostReplyAction.js b/extensions/mentions/js/forum/src/addPostReplyAction.js
index 6b835bd93..b363802f5 100644
--- a/extensions/mentions/js/forum/src/addPostReplyAction.js
+++ b/extensions/mentions/js/forum/src/addPostReplyAction.js
@@ -31,7 +31,7 @@ export default function() {
items.add('reply',
Button.component({
className: 'Button Button--link',
- children: app.trans('flarum-mentions.forum.reply_link'),
+ children: app.translator.trans('flarum-mentions.forum.reply_link'),
onclick: () => {
const quote = window.getSelection().toString();
diff --git a/extensions/mentions/js/forum/src/components/PostMentionedNotification.js b/extensions/mentions/js/forum/src/components/PostMentionedNotification.js
index c5407d0d6..15ea4c43b 100644
--- a/extensions/mentions/js/forum/src/components/PostMentionedNotification.js
+++ b/extensions/mentions/js/forum/src/components/PostMentionedNotification.js
@@ -21,11 +21,11 @@ export default class PostMentionedNotification extends Notification {
const auc = notification.additionalUnreadCount();
const user = notification.sender();
- return app.trans('flarum-mentions.forum.post_mentioned_notification', {
+ return app.translator.trans('flarum-mentions.forum.post_mentioned_notification', {
user,
username: auc ? punctuate([
username(user),
- app.trans('flarum-mentions.forum.others', {count: auc})
+ app.translator.trans('flarum-mentions.forum.others', {count: auc})
]) : undefined
});
}
diff --git a/extensions/mentions/js/forum/src/components/UserMentionedNotification.js b/extensions/mentions/js/forum/src/components/UserMentionedNotification.js
index d0b56ce30..44fe1557e 100644
--- a/extensions/mentions/js/forum/src/components/UserMentionedNotification.js
+++ b/extensions/mentions/js/forum/src/components/UserMentionedNotification.js
@@ -14,7 +14,7 @@ export default class UserMentionedNotification extends Notification {
content() {
const user = this.props.notification.sender();
- return app.trans('flarum-mentions.forum.user_mentioned_notification', {user});
+ return app.translator.trans('flarum-mentions.forum.user_mentioned_notification', {user});
}
excerpt() {
diff --git a/extensions/mentions/js/forum/src/main.js b/extensions/mentions/js/forum/src/main.js
index 129eb6727..418774bd0 100644
--- a/extensions/mentions/js/forum/src/main.js
+++ b/extensions/mentions/js/forum/src/main.js
@@ -35,13 +35,13 @@ app.initializers.add('flarum-mentions', function() {
items.add('postMentioned', {
name: 'postMentioned',
icon: 'reply',
- label: app.trans('flarum-mentions.forum.notify_post_mentioned')
+ label: app.translator.trans('flarum-mentions.forum.notify_post_mentioned')
});
items.add('userMentioned', {
name: 'userMentioned',
icon: 'at',
- label: app.trans('flarum-mentions.forum.notify_user_mentioned')
+ label: app.translator.trans('flarum-mentions.forum.notify_user_mentioned')
});
});