diff --git a/extensions/mentions/js/src/forum/addMentionedByList.js b/extensions/mentions/js/src/forum/addMentionedByList.js index 397c72e71..2f42e86fb 100644 --- a/extensions/mentions/js/src/forum/addMentionedByList.js +++ b/extensions/mentions/js/src/forum/addMentionedByList.js @@ -116,7 +116,7 @@ export default function addMentionedByList() { const count = repliers.length - names.length; names.push( - app.translator.transChoice('flarum-mentions.forum.post.others_text', count, {count}) + app.translator.trans('flarum-mentions.forum.post.others_text', {count}) ); } @@ -124,7 +124,7 @@ export default function addMentionedByList() {
{icon('fas fa-reply')} - {app.translator.transChoice('flarum-mentions.forum.post.mentioned_by' + (repliers[0].user() === app.session.user ? '_self' : '') + '_text', names.length, { + {app.translator.trans('flarum-mentions.forum.post.mentioned_by' + (repliers[0].user() === app.session.user ? '_self' : '') + '_text', { count: names.length, users: punctuateSeries(names) })} diff --git a/extensions/mentions/js/src/forum/components/PostMentionedNotification.js b/extensions/mentions/js/src/forum/components/PostMentionedNotification.js index 55e233952..ee99946ea 100644 --- a/extensions/mentions/js/src/forum/components/PostMentionedNotification.js +++ b/extensions/mentions/js/src/forum/components/PostMentionedNotification.js @@ -18,7 +18,7 @@ export default class PostMentionedNotification extends Notification { const notification = this.attrs.notification; const user = notification.fromUser(); - return app.translator.transChoice('flarum-mentions.forum.notifications.post_mentioned_text', 1, {user}); + return app.translator.trans('flarum-mentions.forum.notifications.post_mentioned_text', {user, count: 1}); } excerpt() {