1
0
mirror of https://github.com/flarum/core.git synced 2025-10-11 15:04:25 +02:00

Make front-end localizable

This commit is contained in:
Toby Zerner
2015-07-17 17:43:28 +09:30
parent 7e75eb16ff
commit f93ff7cb3f
49 changed files with 438 additions and 148 deletions

View File

@@ -20,9 +20,10 @@ export default class TerminalPost extends Component {
return (
<span>
{username(user)}{' '}
{lastPost ? 'replied ' : 'started '}
{humanTime(time)}
{app.trans('core.discussion_' + (lastPost ? 'replied' : 'started'), {
user,
ago: humanTime(time)
})}
</span>
);
}