mirror of
https://github.com/flarum/framework.git
synced 2025-02-18 22:12:50 +08:00
Add missing translation
This commit is contained in:
parent
9c384bee98
commit
420088acc9
|
@ -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'
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user