mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 17:57:04 +08:00
Add missing translation for the reason flag (#30)
This commit is contained in:
parent
62345237ac
commit
bae89a2f44
|
@ -104,7 +104,7 @@ export default function() {
|
|||
Post.prototype.flagReason = function(flag) {
|
||||
if (flag.type() === 'user') {
|
||||
const user = flag.user();
|
||||
const reason = flag.reason();
|
||||
const reason = flag.reason() ? app.translator.trans(`flarum-flags.forum.flag_post.reason_${flag.reason()}_label`) : null;
|
||||
const detail = flag.reasonDetail();
|
||||
const time = humanTime(flag.createdAt());
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user