From d3ea26a38ac0b6cbfa753559092c31c4cea65c5b Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Tue, 3 Aug 2021 15:12:47 +0530 Subject: [PATCH] Use i8n in role Signed-off-by: RMidhunSuresh --- src/domain/session/rightpanel/MemberDetailsViewModel.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/domain/session/rightpanel/MemberDetailsViewModel.js b/src/domain/session/rightpanel/MemberDetailsViewModel.js index 8f3d5add..55a448de 100644 --- a/src/domain/session/rightpanel/MemberDetailsViewModel.js +++ b/src/domain/session/rightpanel/MemberDetailsViewModel.js @@ -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() {