Chore: Add translation

This commit is contained in:
Nelson Chan 2022-04-20 15:09:31 +08:00
parent e0966e55c8
commit a391576285
2 changed files with 6 additions and 2 deletions

View file

@ -462,4 +462,6 @@ export default {
"Footer Text": "Footer Text",
"Show Powered By": "Show Powered By",
"Domain Names": "Domain Names",
signedInDisp: "Signed in as {0}",
signedInDispDisabled: "Auth Disabled.",
};

View file

@ -39,8 +39,10 @@
</div>
<ul class="dropdown-menu">
<li>
<span v-if="$root.username != null" class="dropdown-item-text">Signed in as <strong>{{ $root.username }}</strong></span>
<span v-if="$root.username == null" class="dropdown-item-text">Auth Disabled.</span>
<i18n-t v-if="$root.username != null" tag="span" keypath="signedInDisp" class="dropdown-item-text">
<strong>{{ $root.username }}</strong>
</i18n-t>
<span v-if="$root.username == null" class="dropdown-item-text">{{ $t("signedInDispDisabled") }}</span>
</li>
<li><hr class="dropdown-divider"></li>
<li>