More localization (#393)

* Translate sidebar

* Do not force 12-hour format worldwide

Vue-i18n knows which locales prefer 12-hour format over 24-hour format

* Translate new tiles in profile page

* Translate new tiles in dashboard
This commit is contained in:
sephrat
2021-05-07 18:45:58 +02:00
committed by GitHub
parent 241c156ccd
commit 96919319b1
12 changed files with 75 additions and 47 deletions

View File

@@ -8,7 +8,7 @@
:loading="loading"
>
<template v-slot:open="{ open }">
<v-btn @click="open" class="mx-2" small :color="color"> <v-icon left> mdi-plus </v-icon> Custom </v-btn>
<v-btn @click="open" class="mx-2" small :color="color"> <v-icon left> mdi-plus </v-icon> {{$t('general.custom')}} </v-btn>
</template>
<v-card-text class="mt-6">
<v-text-field dense :label="$t('settings.backup.backup-tag')" v-model="tag"></v-text-field>

View File

@@ -12,7 +12,7 @@
<v-list-item-content>
<v-list-item-title> {{ user.fullName }}</v-list-item-title>
<v-list-item-subtitle> {{ user.admin ? "Admin" : "User" }}</v-list-item-subtitle>
<v-list-item-subtitle> {{ user.admin ? $t('user.admin') : $t('user.user') }}</v-list-item-subtitle>
</v-list-item-content>
</v-list-item>
</template>
@@ -155,7 +155,7 @@ export default {
{
icon: "mdi-account-group",
to: "/admin/manage-users",
title: this.$t("settings.manage-users"),
title: this.$t("user.manage-users"),
},
{
icon: "mdi-database-import",