From b76a68e622b2db6474acdd206bbdfb2e66fefd8f Mon Sep 17 00:00:00 2001 From: rinpatch Date: Wed, 20 Jan 2021 14:03:26 +0300 Subject: [PATCH] UserCard: Make user roles translateable I did not add a translation for my native language in this patch because I am not sure how weblate would react, but I did add it locally and it seems to work. --- src/components/user_card/user_card.vue | 3 +-- src/i18n/en.json | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/user_card/user_card.vue b/src/components/user_card/user_card.vue index 16dd5249..773f764a 100644 --- a/src/components/user_card/user_card.vue +++ b/src/components/user_card/user_card.vue @@ -83,7 +83,7 @@ v-if="!!visibleRole" class="alert user-role" > - {{ visibleRole }} + {{ $t(`user_card.roles.${visibleRole}`) }}