mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-09 03:04:54 -04:00
Localize custom pages and search page (#299)
* Localize custom pages and search page * Fix FR translation for step
This commit is contained in:
parent
2e339ee996
commit
4b09497c3d
@ -17,7 +17,7 @@
|
|||||||
<v-text-field
|
<v-text-field
|
||||||
autofocus
|
autofocus
|
||||||
v-model="page.name"
|
v-model="page.name"
|
||||||
label="Page Name"
|
:label="$t('settings.page-name')"
|
||||||
></v-text-field>
|
></v-text-field>
|
||||||
<CategoryTagSelector
|
<CategoryTagSelector
|
||||||
v-model="page.categories"
|
v-model="page.categories"
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
<CreatePageDialog ref="createDialog" @refresh-page="getPages" />
|
<CreatePageDialog ref="createDialog" @refresh-page="getPages" />
|
||||||
<v-card-text>
|
<v-card-text>
|
||||||
<h2 class="mt-1 mb-1 ">
|
<h2 class="mt-1 mb-1 ">
|
||||||
Custom Pages
|
{{$t('settings.custom-pages')}}
|
||||||
<span>
|
<span>
|
||||||
<v-btn color="success" @click="newPage" small class="ml-3">
|
<v-btn color="success" @click="newPage" small class="ml-3">
|
||||||
Create
|
{{$t('general.create')}}
|
||||||
</v-btn>
|
</v-btn>
|
||||||
</span>
|
</span>
|
||||||
</h2>
|
</h2>
|
||||||
@ -41,11 +41,11 @@
|
|||||||
|
|
||||||
<v-card-actions>
|
<v-card-actions>
|
||||||
<v-btn text small color="error" @click="deletePage(item.id)">
|
<v-btn text small color="error" @click="deletePage(item.id)">
|
||||||
Delete
|
{{$t('general.delete')}}
|
||||||
</v-btn>
|
</v-btn>
|
||||||
<v-spacer> </v-spacer>
|
<v-spacer> </v-spacer>
|
||||||
<v-btn small text color="success" @click="editPage(index)">
|
<v-btn small text color="success" @click="editPage(index)">
|
||||||
Edit
|
{{$t('general.edit')}}
|
||||||
</v-btn>
|
</v-btn>
|
||||||
</v-card-actions>
|
</v-card-actions>
|
||||||
</v-card>
|
</v-card>
|
||||||
@ -55,7 +55,7 @@
|
|||||||
<v-card-actions>
|
<v-card-actions>
|
||||||
<v-spacer></v-spacer>
|
<v-spacer></v-spacer>
|
||||||
<v-btn color="success" @click="savePages">
|
<v-btn color="success" @click="savePages">
|
||||||
Save
|
{{$t('general.save')}}
|
||||||
</v-btn>
|
</v-btn>
|
||||||
</v-card-actions>
|
</v-card-actions>
|
||||||
</v-card>
|
</v-card>
|
||||||
@ -76,8 +76,8 @@ export default {
|
|||||||
customPages: [],
|
customPages: [],
|
||||||
newPageData: {
|
newPageData: {
|
||||||
create: true,
|
create: true,
|
||||||
title: "New Page",
|
title: this.$t('settings.new-page'),
|
||||||
buttonText: "Create",
|
buttonText: this.$t('general.create'),
|
||||||
data: {
|
data: {
|
||||||
name: "",
|
name: "",
|
||||||
categories: [],
|
categories: [],
|
||||||
@ -86,8 +86,8 @@ export default {
|
|||||||
},
|
},
|
||||||
editPageData: {
|
editPageData: {
|
||||||
create: false,
|
create: false,
|
||||||
title: "Edit Page",
|
title: this.$t('settings.edit-page'),
|
||||||
buttonText: "Update",
|
buttonText: this.$t('general.update'),
|
||||||
data: {},
|
data: {},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -90,7 +90,7 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
inputLabel() {
|
inputLabel() {
|
||||||
if (!this.showLabel) return null;
|
if (!this.showLabel) return null;
|
||||||
return this.tagSelector ? "Tags" : "Categories";
|
return this.tagSelector ? this.$t('recipe.tags') : this.$t('recipe.categories');
|
||||||
},
|
},
|
||||||
activeItems() {
|
activeItems() {
|
||||||
let ItemObjects = [];
|
let ItemObjects = [];
|
||||||
|
@ -147,6 +147,14 @@
|
|||||||
},
|
},
|
||||||
"search": {
|
"search": {
|
||||||
"search-mealie": "Search Mealie",
|
"search-mealie": "Search Mealie",
|
||||||
|
"search-placeholder": "Search...",
|
||||||
|
"max-results": "Max Results",
|
||||||
|
"category-filter": "Category Filter",
|
||||||
|
"tag-filter": "Tag Filter",
|
||||||
|
"include": "Include",
|
||||||
|
"exclude": "Exclude",
|
||||||
|
"and": "And",
|
||||||
|
"or": "Or",
|
||||||
"search": "Search"
|
"search": "Search"
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
@ -217,7 +225,11 @@
|
|||||||
"site-settings": "Site Settings",
|
"site-settings": "Site Settings",
|
||||||
"manage-users": "Manage Users",
|
"manage-users": "Manage Users",
|
||||||
"migrations": "Migrations",
|
"migrations": "Migrations",
|
||||||
"profile": "Profile"
|
"profile": "Profile",
|
||||||
|
"custom-pages": "Custom Pages",
|
||||||
|
"new-page": "New Page",
|
||||||
|
"edit-page": "Edit Page",
|
||||||
|
"page-name": "Page Name"
|
||||||
},
|
},
|
||||||
"migration": {
|
"migration": {
|
||||||
"recipe-migration": "Recipe Migration",
|
"recipe-migration": "Recipe Migration",
|
||||||
|
@ -47,6 +47,8 @@
|
|||||||
"field-required": "Champ obligatoire",
|
"field-required": "Champ obligatoire",
|
||||||
"apply": "Appliquer",
|
"apply": "Appliquer",
|
||||||
"current-parenthesis": "(Actuel)",
|
"current-parenthesis": "(Actuel)",
|
||||||
|
"groups": "Groupes",
|
||||||
|
"users": "Utilisateurs",
|
||||||
"about": "À propos"
|
"about": "À propos"
|
||||||
},
|
},
|
||||||
"page": {
|
"page": {
|
||||||
@ -121,7 +123,7 @@
|
|||||||
"categories": "Catégories",
|
"categories": "Catégories",
|
||||||
"tags": "Tags",
|
"tags": "Tags",
|
||||||
"instructions": "Instructions",
|
"instructions": "Instructions",
|
||||||
"step-index": "Etape: {step}",
|
"step-index": "Étape : {step}",
|
||||||
"recipe-name": "Nom de la recette",
|
"recipe-name": "Nom de la recette",
|
||||||
"servings": "Portions",
|
"servings": "Portions",
|
||||||
"ingredient": "Ingrédient",
|
"ingredient": "Ingrédient",
|
||||||
@ -145,6 +147,14 @@
|
|||||||
},
|
},
|
||||||
"search": {
|
"search": {
|
||||||
"search-mealie": "Rechercher dans Mealie",
|
"search-mealie": "Rechercher dans Mealie",
|
||||||
|
"search-placeholder": "Rechercher...",
|
||||||
|
"and": "Et",
|
||||||
|
"category-filter": "Filtre par catégories",
|
||||||
|
"exclude": "Exclure",
|
||||||
|
"include": "Inclure",
|
||||||
|
"max-results": "Résultats max",
|
||||||
|
"or": "Ou",
|
||||||
|
"tag-filter": "Filtre par tags",
|
||||||
"search": "Rechercher"
|
"search": "Rechercher"
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
@ -187,7 +197,7 @@
|
|||||||
},
|
},
|
||||||
"webhooks": {
|
"webhooks": {
|
||||||
"meal-planner-webhooks": "Webhooks du planificateur de repas",
|
"meal-planner-webhooks": "Webhooks du planificateur de repas",
|
||||||
"the-urls-listed-below-will-recieve-webhooks-containing-the-recipe-data-for-the-meal-plan-on-its-scheduled-day-currently-webhooks-will-execute-at": "Les liens dans cette liste recevront les webhooks contenant les recettes pour le plan de menu du jour défini. Actuellement, les webhooks s'executeront à <strong>{ time }</strong>",
|
"the-urls-listed-below-will-recieve-webhooks-containing-the-recipe-data-for-the-meal-plan-on-its-scheduled-day-currently-webhooks-will-execute-at": "Les liens dans cette liste recevront les webhooks contenant les recettes pour le plan de menu du jour défini. Actuellement, les webhooks s'exécuteront à",
|
||||||
"test-webhooks": "Tester les webhooks",
|
"test-webhooks": "Tester les webhooks",
|
||||||
"webhook-url": "Lien du webhook"
|
"webhook-url": "Lien du webhook"
|
||||||
},
|
},
|
||||||
@ -215,7 +225,11 @@
|
|||||||
"manage-users": "Utilisateurs",
|
"manage-users": "Utilisateurs",
|
||||||
"migrations": "Migrations",
|
"migrations": "Migrations",
|
||||||
"profile": "Profil",
|
"profile": "Profil",
|
||||||
"site-settings": "Paramètres site"
|
"site-settings": "Paramètres site",
|
||||||
|
"custom-pages": "Pages personnalisées",
|
||||||
|
"edit-page": "Modifier la page",
|
||||||
|
"new-page": "Nouvelle page",
|
||||||
|
"page-name": "Nom de la page"
|
||||||
},
|
},
|
||||||
"migration": {
|
"migration": {
|
||||||
"recipe-migration": "Migrer les recettes",
|
"recipe-migration": "Migrer les recettes",
|
||||||
|
@ -10,11 +10,11 @@
|
|||||||
mandatory
|
mandatory
|
||||||
>
|
>
|
||||||
<v-btn :value="false">
|
<v-btn :value="false">
|
||||||
Include
|
{{$t('search.include')}}
|
||||||
</v-btn>
|
</v-btn>
|
||||||
|
|
||||||
<v-btn :value="true">
|
<v-btn :value="true">
|
||||||
Exclude
|
{{$t('search.exclude')}}
|
||||||
</v-btn>
|
</v-btn>
|
||||||
</v-btn-toggle>
|
</v-btn-toggle>
|
||||||
<v-spacer></v-spacer>
|
<v-spacer></v-spacer>
|
||||||
@ -28,10 +28,10 @@
|
|||||||
mandatory
|
mandatory
|
||||||
>
|
>
|
||||||
<v-btn :value="false">
|
<v-btn :value="false">
|
||||||
And
|
{{$t('search.and')}}
|
||||||
</v-btn>
|
</v-btn>
|
||||||
<v-btn :value="true">
|
<v-btn :value="true">
|
||||||
Or
|
{{$t('search.or')}}
|
||||||
</v-btn>
|
</v-btn>
|
||||||
</v-btn-toggle>
|
</v-btn-toggle>
|
||||||
</v-toolbar>
|
</v-toolbar>
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
v-model="searchString"
|
v-model="searchString"
|
||||||
outlined
|
outlined
|
||||||
color="primary accent-3"
|
color="primary accent-3"
|
||||||
placeholder="Placeholder"
|
:placeholder="$t('search.search-placeholder')"
|
||||||
append-icon="mdi-magnify"
|
append-icon="mdi-magnify"
|
||||||
>
|
>
|
||||||
</v-text-field>
|
</v-text-field>
|
||||||
@ -16,7 +16,7 @@
|
|||||||
<v-col cols="12" md="2" sm="12">
|
<v-col cols="12" md="2" sm="12">
|
||||||
<v-text-field
|
<v-text-field
|
||||||
class="mt-0 pt-0"
|
class="mt-0 pt-0"
|
||||||
label="Max Results"
|
:label="$t('search.max-results')"
|
||||||
v-model="maxResults"
|
v-model="maxResults"
|
||||||
type="number"
|
type="number"
|
||||||
outlined
|
outlined
|
||||||
@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
<v-row dense class="mt-0 flex-row align-center justify-space-around">
|
<v-row dense class="mt-0 flex-row align-center justify-space-around">
|
||||||
<v-col>
|
<v-col>
|
||||||
<h3 class="pl-2 text-center headline">Category Filter</h3>
|
<h3 class="pl-2 text-center headline">{{$t('search.category-filter')}}</h3>
|
||||||
<FilterSelector class="mb-1" @update="updateCatParams" />
|
<FilterSelector class="mb-1" @update="updateCatParams" />
|
||||||
<CategoryTagSelector
|
<CategoryTagSelector
|
||||||
:solo="true"
|
:solo="true"
|
||||||
@ -36,7 +36,7 @@
|
|||||||
/>
|
/>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col>
|
<v-col>
|
||||||
<h3 class="pl-2 text-center headline">Tag Filter</h3>
|
<h3 class="pl-2 text-center headline">{{$t('search.tag-filter')}}</h3>
|
||||||
<FilterSelector class="mb-1" @update="updateTagParams" />
|
<FilterSelector class="mb-1" @update="updateTagParams" />
|
||||||
|
|
||||||
<CategoryTagSelector
|
<CategoryTagSelector
|
||||||
|
Loading…
x
Reference in New Issue
Block a user