mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-25 16:19:43 +02:00
Localize more dates and texts (#341)
* Localize more dates and texts * Adapt source language to 4-letter code for VS code * Make page titles more reactive to language change * Translate missing text + fix missed refactoring * Fix missed page titles refactoring * Translate nutrition view * Translate Image upload vue * Fix default text being defined twice in upload btn
This commit is contained in:
parent
048d3d5469
commit
80f8806604
18 changed files with 65 additions and 125 deletions
|
@ -9,6 +9,7 @@ import VueRouter from "vue-router";
|
|||
import VueI18n from "@/i18n";
|
||||
import Vuetify from "@/plugins/vuetify";
|
||||
import Vue from "vue";
|
||||
import i18n from '@/i18n.js';
|
||||
|
||||
export const routes = [
|
||||
...generalRoutes,
|
||||
|
@ -34,8 +35,8 @@ router.afterEach(to => {
|
|||
const title = await to.meta.title(to);
|
||||
document.title = title + TITLE_SUFFIX;
|
||||
} else {
|
||||
document.title = to.meta.title
|
||||
? to.meta.title + TITLE_SUFFIX
|
||||
document.title = i18n.t(to.meta.title)
|
||||
? i18n.t(to.meta.title) + TITLE_SUFFIX
|
||||
: DEFAULT_TITLE;
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue