mirror of https://github.com/VueTubeApp/VueTube
perf: ⚡ store lang pack as variable instead of 3 seperate calls
This commit is contained in:
parent
7fd18cf78c
commit
fdcf86678d
|
@ -74,24 +74,25 @@ export default {
|
||||||
tabSelection: 0,
|
tabSelection: 0,
|
||||||
tabs: [
|
tabs: [
|
||||||
// TODO: pull from Vuex & localStorage for customizations
|
// TODO: pull from Vuex & localStorage for customizations
|
||||||
{ name: "...", icon: "mdi-home", link: "/home" },
|
{ name: "", icon: "mdi-home", link: "/home" },
|
||||||
//{ name: "Shorts", icon: "mdi-lightning-bolt", link: "/shorts" },
|
//{ name: "Shorts", icon: "mdi-lightning-bolt", link: "/shorts" },
|
||||||
//{ name: "Upload", icon: "mdi-plus", link: "/upload" },
|
//{ name: "Upload", icon: "mdi-plus", link: "/upload" },
|
||||||
{
|
{
|
||||||
name: "...",
|
name: "",
|
||||||
icon: "mdi-youtube-subscription",
|
icon: "mdi-youtube-subscription",
|
||||||
link: "/subscriptions",
|
link: "/subscriptions",
|
||||||
},
|
},
|
||||||
{ name: "...", icon: "mdi-view-list", link: "/library" },
|
{ name: "", icon: "mdi-view-list", link: "/library" },
|
||||||
// { name: "Settings", icon: "mdi-menu", link: "/settings" },
|
// { name: "Settings", icon: "mdi-menu", link: "/settings" },
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
this.tabs[0].name = this.$lang("global").home;
|
const lang = this.$lang("global");
|
||||||
this.tabs[1].name = this.$lang("global").subscriptions;
|
this.tabs[0].name = lang.home;
|
||||||
this.tabs[2].name = this.$lang("global").library;
|
this.tabs[1].name = lang.subscriptions;
|
||||||
|
this.tabs[2].name = lang.library;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue