mirror of
https://github.com/flarum/core.git
synced 2025-08-06 08:27:42 +02:00
Add missing translation
This commit is contained in:
@@ -27,7 +27,7 @@ export default function() {
|
|||||||
.map(user => {
|
.map(user => {
|
||||||
return (
|
return (
|
||||||
<a href={app.route.user(user)} config={m.route}>
|
<a href={app.route.user(user)} config={m.route}>
|
||||||
{user === app.session.user ? 'You' : username(user)}
|
{user === app.session.user ? app.trans('likes.you') : username(user)}
|
||||||
</a>
|
</a>
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
@@ -1,4 +1,6 @@
|
|||||||
import Notification from 'flarum/components/Notification';
|
import Notification from 'flarum/components/Notification';
|
||||||
|
import username from 'flarum/helpers/username';
|
||||||
|
import punctuate from 'flarum/helpers/punctuate';
|
||||||
|
|
||||||
export default class PostLikedNotification extends Notification {
|
export default class PostLikedNotification extends Notification {
|
||||||
icon() {
|
icon() {
|
||||||
@@ -19,7 +21,7 @@ export default class PostLikedNotification extends Notification {
|
|||||||
user,
|
user,
|
||||||
username: auc ? punctuate([
|
username: auc ? punctuate([
|
||||||
username(user),
|
username(user),
|
||||||
app.trans('core.others', {count: auc})
|
app.trans('likes.others', {count: auc})
|
||||||
]) : undefined,
|
]) : undefined,
|
||||||
number: post.number()
|
number: post.number()
|
||||||
});
|
});
|
||||||
|
@@ -9,3 +9,4 @@ likes:
|
|||||||
like_action: Like
|
like_action: Like
|
||||||
notify_post_liked: Someone likes my post
|
notify_post_liked: Someone likes my post
|
||||||
others: "{count} others"
|
others: "{count} others"
|
||||||
|
you: You
|
||||||
|
@@ -34,7 +34,8 @@ class AddClientAssets
|
|||||||
'likes.unlike_action',
|
'likes.unlike_action',
|
||||||
'likes.like_action',
|
'likes.like_action',
|
||||||
'likes.notify_post_liked',
|
'likes.notify_post_liked',
|
||||||
'likes.others'
|
'likes.others',
|
||||||
|
'likes.you'
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user