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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 75 additions and 47 deletions

View file

@ -11,7 +11,9 @@
<StatCard icon="mdi-backup-restore" :color="color">
<template v-slot:after-heading>
<div class="ml-auto text-right">
<div class="body-3 grey--text font-weight-light" v-text="'Backups'" />
<h2 class="body-3 grey--text font-weight-light">
{{$t('settings.backup-and-exports')}}
</h2>
<h3 class="display-2 font-weight-light text--primary">
<small> {{ total }}</small>
@ -22,14 +24,14 @@
<TheUploadBtn url="/api/backups/upload" @uploaded="getAvailableBackups">
<template v-slot="{ isSelecting, onButtonClick }">
<v-btn :loading="isSelecting" class="mx-2" small :color="color" @click="onButtonClick">
<v-icon left> mdi-cloud-upload </v-icon> Upload
<v-icon left> mdi-cloud-upload </v-icon> {{$t('general.upload')}}
</v-btn>
</template>
</TheUploadBtn>
<BackupDialog :color="color" />
<v-btn :loading="loading" class="mx-2" small :color="color" @click="createBackup">
<v-icon left> mdi-plus </v-icon> Create
<v-icon left> mdi-plus </v-icon> {{$t('general.create')}}
</v-btn>
</div>
<template v-slot:bottom>