mirror of
https://github.com/flarum/framework.git
synced 2025-05-23 15:19:56 +08:00
Make front-end localizable
This commit is contained in:
@ -89,13 +89,13 @@ export default class UserCard extends Component {
|
||||
items.add('lastSeen', (
|
||||
<span className={'UserCard-lastSeen' + (online ? ' online' : '')}>
|
||||
{online
|
||||
? [icon('circle'), ' Online']
|
||||
? [icon('circle'), ' ', app.trans('core.online')]
|
||||
: [icon('clock-o'), ' ', humanTime(lastSeenTime)]}
|
||||
</span>
|
||||
));
|
||||
}
|
||||
|
||||
items.add('joined', ['Joined ', humanTime(user.joinTime())]);
|
||||
items.add('joined', app.trans('core.joined', {ago: humanTime(user.joinTime())}));
|
||||
|
||||
return items;
|
||||
}
|
||||
|
Reference in New Issue
Block a user