Translate CardSection

This commit is contained in:
Florian Dupret 2021-03-14 09:21:35 +01:00
commit 7a2ff1b01e
3 changed files with 12 additions and 8 deletions

View file

@ -15,15 +15,15 @@
<v-menu offset-y v-if="sortable"> <v-menu offset-y v-if="sortable">
<template v-slot:activator="{ on, attrs }"> <template v-slot:activator="{ on, attrs }">
<v-btn-toggle group> <v-btn-toggle group>
<v-btn text v-bind="attrs" v-on="on"> Sort </v-btn> <v-btn text v-bind="attrs" v-on="on">{{$t('general.sort')}}</v-btn>
</v-btn-toggle> </v-btn-toggle>
</template> </template>
<v-list> <v-list>
<v-list-item @click="$emit('sort-recent')"> <v-list-item @click="$emit('sort-recent')">
<v-list-item-title> Recent </v-list-item-title> <v-list-item-title>{{$t('general.recent')}}</v-list-item-title>
</v-list-item> </v-list-item>
<v-list-item @click="$emit('sort')"> <v-list-item @click="$emit('sort')">
<v-list-item-title> A-Z </v-list-item-title> <v-list-item-title>{{$t('general.sort-alphabetically')}}</v-list-item-title>
</v-list-item> </v-list-item>
</v-list> </v-list>
</v-menu> </v-menu>

View file

@ -1,5 +1,4 @@
{ {
"404": { "404": {
"page-not-found": "404 Page Not Found", "page-not-found": "404 Page Not Found",
"take-me-home": "Take me Home" "take-me-home": "Take me Home"
@ -36,7 +35,10 @@
"templates": "Templates", "templates": "Templates",
"recipes": "Recipes", "recipes": "Recipes",
"themes": "Themes", "themes": "Themes",
"confirm": "Confirm" "confirm": "Confirm",
"sort": "Sort",
"recent": "Recent",
"sort-alphabetically": "A-Z"
}, },
"page": { "page": {
"home-page": "Home Page", "home-page": "Home Page",
@ -174,4 +176,4 @@
"description": "Migrate data from Chowdown" "description": "Migrate data from Chowdown"
} }
} }
} }

View file

@ -1,5 +1,4 @@
{ {
"404": { "404": {
"page-not-found": "404 Page introuvable", "page-not-found": "404 Page introuvable",
"take-me-home": "Retour à l'accueil" "take-me-home": "Retour à l'accueil"
@ -36,7 +35,10 @@
"templates": "Modèles", "templates": "Modèles",
"recipes": "Recettes", "recipes": "Recettes",
"themes": "Thèmes", "themes": "Thèmes",
"confirm": "Confirmer" "confirm": "Confirmer",
"recent": "Récent",
"sort": "Trier",
"sort-alphabetically": "A-Z"
}, },
"page": { "page": {
"home-page": "Accueil", "home-page": "Accueil",