mirror of
https://github.com/flarum/core.git
synced 2025-07-18 15:21:16 +02:00
Change app.trans
calls to app.translator.trans
calls
This commit is contained in:
@@ -101,7 +101,7 @@ export default function() {
|
||||
const detail = flag.reasonDetail();
|
||||
|
||||
return [
|
||||
app.trans(reason ? 'flarum-flags.forum.flagged_by_with_reason' : 'flarum-flags.forum.flagged_by', {user, reason}),
|
||||
app.translator.trans(reason ? 'flarum-flags.forum.flagged_by_with_reason' : 'flarum-flags.forum.flagged_by', {user, reason}),
|
||||
detail ? <span className="Post-flagged-detail">{detail}</span> : ''
|
||||
];
|
||||
}
|
||||
|
Reference in New Issue
Block a user