mirror of
https://github.com/flarum/framework.git
synced 2025-05-24 15:49:58 +08:00
Make front-end localizable
This commit is contained in:
@ -18,6 +18,10 @@ export default class DiscussionRenamedPost extends EventPost {
|
||||
const oldTitle = post.content()[0];
|
||||
const newTitle = post.content()[1];
|
||||
|
||||
return ['changed the title from ', m('strong.DiscussionRenamedPost-old', oldTitle), ' to ', m('strong.DiscussionRenamedPost-new', newTitle), '.'];
|
||||
return app.trans('core.discussion_renamed', {
|
||||
user: this.props.post.user(),
|
||||
old: <strong className="DiscussionRenamedPost-old">{oldTitle}</strong>,
|
||||
new: <strong className="DiscussionRenamedPost-new">{newTitle}</strong>
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user