forked from AkkomaGang/akkoma-fe
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.
This commit is contained in:
parent
fe78ed78fd
commit
b76a68e622
2 changed files with 5 additions and 2 deletions
|
@ -83,7 +83,7 @@
|
||||||
v-if="!!visibleRole"
|
v-if="!!visibleRole"
|
||||||
class="alert user-role"
|
class="alert user-role"
|
||||||
>
|
>
|
||||||
{{ visibleRole }}
|
{{ $t(`user_card.roles.${visibleRole}`) }}
|
||||||
</span>
|
</span>
|
||||||
<span
|
<span
|
||||||
v-if="user.bot"
|
v-if="user.bot"
|
||||||
|
@ -507,7 +507,6 @@
|
||||||
|
|
||||||
.user-role {
|
.user-role {
|
||||||
flex: none;
|
flex: none;
|
||||||
text-transform: capitalize;
|
|
||||||
color: $fallback--text;
|
color: $fallback--text;
|
||||||
color: var(--alertNeutralText, $fallback--text);
|
color: var(--alertNeutralText, $fallback--text);
|
||||||
background-color: $fallback--fg;
|
background-color: $fallback--fg;
|
||||||
|
|
|
@ -729,6 +729,10 @@
|
||||||
"quarantine": "Disallow user posts from federating",
|
"quarantine": "Disallow user posts from federating",
|
||||||
"delete_user": "Delete user",
|
"delete_user": "Delete user",
|
||||||
"delete_user_confirmation": "Are you absolutely sure? This action cannot be undone."
|
"delete_user_confirmation": "Are you absolutely sure? This action cannot be undone."
|
||||||
|
},
|
||||||
|
"roles": {
|
||||||
|
"admin": "Admin",
|
||||||
|
"moderator": "Moderator"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"user_profile": {
|
"user_profile": {
|
||||||
|
|
Loading…
Reference in a new issue