mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-12-02 19:01:21 +01:00
internalization half-done
This commit is contained in:
1 parent
4b5482be18
commit
28369db138
13 files changed
+223
-185
No files matched your search
@@ -8,7 +8,7 @@
|
||||
<!-- Translator desktop -->
|
||||
<v-tabs centered center-active color="primary" router show-arrows>
|
||||
<v-tab v-for="link in links" :key="link.path" :to="link.path">
|
||||
{{ link.name }}
|
||||
{{ $vuetify.lang.t(`$vuetify.${link.name}.name`) }}
|
||||
</v-tab>
|
||||
</v-tabs>
|
||||
</v-app-bar>
|
||||
@@ -102,13 +102,13 @@
|
||||
export default {
|
||||
data: () => ({
|
||||
links: [
|
||||
{ name: "Home", path: "/" },
|
||||
{ name: "Install", path: "/install" },
|
||||
{ name: "API", path: "/docs" },
|
||||
{ name: "Help", path: "/help" },
|
||||
{ name: "FAQ", path: "/faq" },
|
||||
{ name: "Donate", path: "/donate" },
|
||||
{ name: "Links", path: "/links" },
|
||||
{ name: "home", path: "/" },
|
||||
{ name: "install", path: "/install" },
|
||||
{ name: "api", path: "/docs" },
|
||||
{ name: "help", path: "/help" },
|
||||
{ name: "faq", path: "/faq" },
|
||||
{ name: "donate", path: "/donate" },
|
||||
{ name: "links", path: "/links" },
|
||||
],
|
||||
langs: [
|
||||
{ name: "English", locale: "en" },
|
||||
@@ -128,7 +128,6 @@ export default {
|
||||
if (process.client && navigator.language) {
|
||||
this.$vuetify.lang.current = navigator.language.slice(0, 2);
|
||||
}
|
||||
console.log(this.$vuetify.lang);
|
||||
setTimeout(() => {
|
||||
// Chrome < 70 or FF < 60
|
||||
if (
|
||||
|
||||
Reference in new issue
Block a user