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 => {
|
||||
return (
|
||||
<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>
|
||||
);
|
||||
});
|
||||
|
@@ -1,4 +1,6 @@
|
||||
import Notification from 'flarum/components/Notification';
|
||||
import username from 'flarum/helpers/username';
|
||||
import punctuate from 'flarum/helpers/punctuate';
|
||||
|
||||
export default class PostLikedNotification extends Notification {
|
||||
icon() {
|
||||
@@ -19,7 +21,7 @@ export default class PostLikedNotification extends Notification {
|
||||
user,
|
||||
username: auc ? punctuate([
|
||||
username(user),
|
||||
app.trans('core.others', {count: auc})
|
||||
app.trans('likes.others', {count: auc})
|
||||
]) : undefined,
|
||||
number: post.number()
|
||||
});
|
||||
|
@@ -9,3 +9,4 @@ likes:
|
||||
like_action: Like
|
||||
notify_post_liked: Someone likes my post
|
||||
others: "{count} others"
|
||||
you: You
|
||||
|
@@ -34,7 +34,8 @@ class AddClientAssets
|
||||
'likes.unlike_action',
|
||||
'likes.like_action',
|
||||
'likes.notify_post_liked',
|
||||
'likes.others'
|
||||
'likes.others',
|
||||
'likes.you'
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user