mirror of
https://github.com/flarum/core.git
synced 2025-08-06 16:36:47 +02:00
i18n: Pluralise notification text
This commit is contained in:
@@ -16,11 +16,11 @@ export default class PostLikedNotification extends Notification {
|
|||||||
const user = notification.sender();
|
const user = notification.sender();
|
||||||
const auc = notification.additionalUnreadCount();
|
const auc = notification.additionalUnreadCount();
|
||||||
|
|
||||||
return app.translator.trans('flarum-likes.forum.notifications.post_liked_text', {
|
return app.translator.transChoice('flarum-likes.forum.notifications.post_liked_text', auc + 1, {
|
||||||
user,
|
user,
|
||||||
username: auc ? punctuateSeries([
|
username: auc ? punctuateSeries([
|
||||||
username(user),
|
username(user),
|
||||||
app.translator.trans('flarum-likes.forum.others', {count: auc})
|
app.translator.transChoice('flarum-likes.forum.notifications.others_text', auc, {count: auc})
|
||||||
]) : undefined
|
]) : undefined
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user