mirror of https://github.com/VueTubeApp/VueTube
docs: ♿ Basic Italian Language Translation
Add a language translation for Italian - only supports some parts of the app; can be added via the registry editor with key:"language" value:"italian"
This commit is contained in:
parent
e239726048
commit
a6a817f3a9
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<div class="mainContainer pt-1">
|
||||
<v-card flat class="pb-5 background" :class="$vuetify.theme.dark ? 'lighten-1' : 'darken-1'" :style="{borderRadius: `${roundTweak / 2}rem`}">
|
||||
<v-card-title>Default Page</v-card-title>
|
||||
<v-card-title>{{ lang.mods.startup.defaultpage }}</v-card-title>
|
||||
<v-card-text>
|
||||
<v-select v-model="page" background-color="background" :items="pages" label="Default Page" solo></v-select>
|
||||
</v-card-text>
|
||||
|
@ -15,13 +15,14 @@
|
|||
computed: {
|
||||
roundTweak() {
|
||||
return this.$store.state.tweaks.roundTweak;
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
data() {
|
||||
return {
|
||||
page: "home",
|
||||
pages: [],
|
||||
lang: { mods: { startup: {} } }
|
||||
};
|
||||
},
|
||||
|
||||
|
@ -34,16 +35,17 @@
|
|||
mounted() {
|
||||
this.page = localStorage.getItem("startPage") || "home";
|
||||
|
||||
const langPack = this.$lang('global');
|
||||
const lang = this.$lang(); this.lang = lang;
|
||||
|
||||
this.pages = [{
|
||||
value: "home",
|
||||
text: langPack.home
|
||||
text: lang.global.home
|
||||
}, {
|
||||
value: "subscriptions",
|
||||
text: langPack.subscriptions
|
||||
text: lang.global.subscriptions
|
||||
}, {
|
||||
value: "library",
|
||||
text: langPack.library
|
||||
text: lang.global.library
|
||||
}];
|
||||
}
|
||||
};
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
function module(text) {
|
||||
const selectedLanguage = localStorage.getItem(text) || "english";
|
||||
const selectedLanguage = localStorage.getItem("language") || "english";
|
||||
const languagePack = require('./languages/'+selectedLanguage);
|
||||
|
||||
if (!text) return languagePack;
|
||||
|
|
|
@ -26,6 +26,9 @@ module.exports = {
|
|||
},
|
||||
|
||||
mods: {
|
||||
startup: {
|
||||
defaultpage: "Default Page"
|
||||
},
|
||||
about: {
|
||||
appinformation: "App Information",
|
||||
appversion: "App Version",
|
||||
|
|
|
@ -0,0 +1,55 @@
|
|||
module.exports = {
|
||||
name: "Italian",
|
||||
|
||||
global: {
|
||||
home: "Casa",
|
||||
subscriptions: "Abbonamento",
|
||||
library: "Biblioteca"
|
||||
},
|
||||
|
||||
index: {
|
||||
connecting: "Collegamento",
|
||||
launching: "Lanciare"
|
||||
},
|
||||
|
||||
settings: {
|
||||
general: "Generale",
|
||||
theme: "Tema",
|
||||
player: "Lettore",
|
||||
uitweaker: "Mettere UI",
|
||||
startupoptions: "Opzione Avvio",
|
||||
plugins: "Aggiuntivo Componente",
|
||||
updates: "Aggiornare",
|
||||
logs: "Registro",
|
||||
about: "Chiedere Di",
|
||||
devmode: "Editor Registro"
|
||||
},
|
||||
|
||||
mods: {
|
||||
startup: {
|
||||
defaultpage: "Pagina Predefinita"
|
||||
},
|
||||
about: {
|
||||
appinformation: "Informazioni Applicazione",
|
||||
appversion: "Versione Applicazione",
|
||||
deviceinformation: "Informazioni Congegno",
|
||||
platform: "Piattaforma",
|
||||
os: "Sistema Operativo",
|
||||
model: "Modello",
|
||||
manufacturer: "Costruttore",
|
||||
emulator: "Emulatore",
|
||||
github: "GitHub",
|
||||
discord: "Discord"
|
||||
}
|
||||
},
|
||||
|
||||
events: {
|
||||
welcome: "Welcome to VueTube",
|
||||
tagline: "The future of video streaming",
|
||||
next: "Prossimo",
|
||||
updated: "VueTube Was Updated!",
|
||||
awesome: "Imponente!"
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue