Localization (#568)

* Translate 404 pages

* Remove unused strings
This commit is contained in:
sephrat
2021-06-18 15:09:02 +02:00
committed by GitHub
parent b25282aef1
commit 67563da67b
4 changed files with 18 additions and 35 deletions

View File

@@ -1,7 +1,7 @@
<template>
<div>
<The404>
<h1 class="mx-auto">No Recipe Found</h1>
<h1 class="mx-auto">{{ $t('general.no-recipe-found') }}</h1>
</The404>
</div>
</template>

View File

@@ -29,15 +29,15 @@
<script>
export default {
data() {
return {
buttons: [
{ icon: this.$globals.icons.home, to: "/", text: "Home" },
{ icon: this.$globals.icons.primary, to: "/recipes/all", text: "All Recipes" },
{ icon: this.$globals.icons.search, to: "/search", text: "Search" },
],
};
},
computed: {
buttons() {
return[
{ icon: this.$globals.icons.home, to: "/", text: this.$t('general.home') },
{ icon: this.$globals.icons.primary, to: "/recipes/all", text: this.$t('page.all-recipes') },
{ icon: this.$globals.icons.search, to: "/search", text: this.$t('search.search') },
];
},
}
};
</script>