Use i8n in role

Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
RMidhunSuresh 2021-08-03 15:12:47 +05:30
parent 862e8569a9
commit d3ea26a38a

View file

@ -38,10 +38,10 @@ export class MemberDetailsViewModel extends ViewModel {
get previousSegmentName() { return "members"; }
get role() {
if (this.powerLevel >= 100) { return "Admin"; }
else if (this.powerLevel >= 50) { return "Moderator"; }
else if (this.powerLevel === 0) { return "Default"; }
else { return `Custom (${this.powerLevel})`; }
if (this.powerLevel >= 100) { return this.i18n`Admin`; }
else if (this.powerLevel >= 50) { return this.i18n`Moderator`; }
else if (this.powerLevel === 0) { return this.i18n`Default`; }
else { return this.i18n`Custom (${this.powerLevel})`; }
}
_onMemberChange() {