Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Commit a6a817f

Browse files
committed
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"
1 parent e239726 commit a6a817f

File tree

5 files changed

+67
-7
lines changed

5 files changed

+67
-7
lines changed

NUXT/pages/mods/startup.vue

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<div class="mainContainer pt-1">
33
<v-card flat class="pb-5 background" :class="$vuetify.theme.dark ? 'lighten-1' : 'darken-1'" :style="{borderRadius: `${roundTweak / 2}rem`}">
4-
<v-card-title>Default Page</v-card-title>
4+
<v-card-title>{{ lang.mods.startup.defaultpage }}</v-card-title>
55
<v-card-text>
66
<v-select v-model="page" background-color="background" :items="pages" label="Default Page" solo></v-select>
77
</v-card-text>
@@ -15,13 +15,14 @@
1515
computed: {
1616
roundTweak() {
1717
return this.$store.state.tweaks.roundTweak;
18-
}
18+
},
1919
},
2020
2121
data() {
2222
return {
2323
page: "home",
2424
pages: [],
25+
lang: { mods: { startup: {} } }
2526
};
2627
},
2728
@@ -34,16 +35,17 @@
3435
mounted() {
3536
this.page = localStorage.getItem("startPage") || "home";
3637
37-
const langPack = this.$lang('global');
38+
const lang = this.$lang(); this.lang = lang;
39+
3840
this.pages = [{
3941
value: "home",
40-
text: langPack.home
42+
text: lang.global.home
4143
}, {
4244
value: "subscriptions",
43-
text: langPack.subscriptions
45+
text: lang.global.subscriptions
4446
}, {
4547
value: "library",
46-
text: langPack.library
48+
text: lang.global.library
4749
}];
4850
}
4951
};

NUXT/plugins/language.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function module(text) {
2-
const selectedLanguage = localStorage.getItem(text) || "english";
2+
const selectedLanguage = localStorage.getItem("language") || "english";
33
const languagePack = require('./languages/'+selectedLanguage);
44

55
if (!text) return languagePack;

NUXT/plugins/languages/english.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ module.exports = {
2626
},
2727

2828
mods: {
29+
startup: {
30+
defaultpage: "Default Page"
31+
},
2932
about: {
3033
appinformation: "App Information",
3134
appversion: "App Version",

NUXT/plugins/languages/italian.js

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
module.exports = {
2+
name: "Italian",
3+
4+
global: {
5+
home: "Casa",
6+
subscriptions: "Abbonamento",
7+
library: "Biblioteca"
8+
},
9+
10+
index: {
11+
connecting: "Collegamento",
12+
launching: "Lanciare"
13+
},
14+
15+
settings: {
16+
general: "Generale",
17+
theme: "Tema",
18+
player: "Lettore",
19+
uitweaker: "Mettere UI",
20+
startupoptions: "Opzione Avvio",
21+
plugins: "Aggiuntivo Componente",
22+
updates: "Aggiornare",
23+
logs: "Registro",
24+
about: "Chiedere Di",
25+
devmode: "Editor Registro"
26+
},
27+
28+
mods: {
29+
startup: {
30+
defaultpage: "Pagina Predefinita"
31+
},
32+
about: {
33+
appinformation: "Informazioni Applicazione",
34+
appversion: "Versione Applicazione",
35+
deviceinformation: "Informazioni Congegno",
36+
platform: "Piattaforma",
37+
os: "Sistema Operativo",
38+
model: "Modello",
39+
manufacturer: "Costruttore",
40+
emulator: "Emulatore",
41+
github: "GitHub",
42+
discord: "Discord"
43+
}
44+
},
45+
46+
events: {
47+
welcome: "Welcome to VueTube",
48+
tagline: "The future of video streaming",
49+
next: "Prossimo",
50+
updated: "VueTube Was Updated!",
51+
awesome: "Imponente!"
52+
}
53+
54+
55+
}

0 commit comments

Comments
 (0)