Externalize strings

Also some cleanup. Work on issue #41.
This commit is contained in:
N-Pex 2021-05-20 12:33:59 +02:00
parent 3c60ad4f14
commit a78659b206
43 changed files with 402 additions and 288 deletions

View file

@ -1,7 +1,7 @@
<template>
<!-- ROOM JOIN RULES CHANGED -->
<div class="statusEvent">
{{ stateEventDisplayName(event) }} made the room {{ joinRule(event) }}
{{ $t('message.user_changed_join_rules', { user: stateEventDisplayName(event), type: joinRule(event)}) }}
</div>
</template>
@ -15,9 +15,9 @@ export default {
const joinRule = event.getContent().join_rule;
switch (joinRule) {
case "invite":
return "invite only";
return this.$t('message.room_joinrule_invite');
case "public":
return "public";
return this.$t('message.room_joinrule_public');
}
return joinRule;
}