diff --git a/extensions/likes/js/src/forum/addLikesList.js b/extensions/likes/js/src/forum/addLikesList.js
index 39dd66a8d..8a3d31f4b 100644
--- a/extensions/likes/js/src/forum/addLikesList.js
+++ b/extensions/likes/js/src/forum/addLikesList.js
@@ -40,7 +40,7 @@ export default function() {
e.preventDefault();
app.modal.show(PostLikesModal, {post});
}}>
- {app.translator.transChoice('flarum-likes.forum.post.others_link', count, {count})}
+ {app.translator.trans('flarum-likes.forum.post.others_link', {count})}
);
}
@@ -48,7 +48,7 @@ export default function() {
items.add('liked', (
{icon('far fa-thumbs-up')}
- {app.translator.transChoice('flarum-likes.forum.post.liked_by' + (likes[0] === app.session.user ? '_self' : '') + '_text', names.length, {
+ {app.translator.trans('flarum-likes.forum.post.liked_by' + (likes[0] === app.session.user ? '_self' : '') + '_text', {
count: names.length,
users: punctuateSeries(names)
})}
diff --git a/extensions/likes/js/src/forum/components/PostLikedNotification.js b/extensions/likes/js/src/forum/components/PostLikedNotification.js
index a71b86ca3..a0744c833 100644
--- a/extensions/likes/js/src/forum/components/PostLikedNotification.js
+++ b/extensions/likes/js/src/forum/components/PostLikedNotification.js
@@ -14,7 +14,7 @@ export default class PostLikedNotification extends Notification {
const notification = this.attrs.notification;
const user = notification.fromUser();
- return app.translator.transChoice('flarum-likes.forum.notifications.post_liked_text', 1, {user});
+ return app.translator.trans('flarum-likes.forum.notifications.post_liked_text', {user, count: 1});
}
excerpt() {
diff --git a/extensions/likes/locale/en.yml b/extensions/likes/locale/en.yml
index b723b35ee..dc0fe52da 100644
--- a/extensions/likes/locale/en.yml
+++ b/extensions/likes/locale/en.yml
@@ -23,7 +23,7 @@ flarum-likes:
post:
like_link: Like
liked_by_self_text: "{users} like this." # Can be pluralized to agree with the number of users!
- liked_by_text: "{users} likes this.|{users} like this."
+ liked_by_text: "{count, plural, one {{users} likes this} other {{users} like this}}"
others_link: => core.ref.some_others
unlike_link: Unlike
you_text: => core.ref.you