Translation of pages
This commit is contained in:
@@ -28,4 +28,4 @@
|
|||||||
"accountmanagement": "Account Management",
|
"accountmanagement": "Account Management",
|
||||||
"security": "security"
|
"security": "security"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -28,5 +28,4 @@
|
|||||||
"accountmanagement": "Gestion de comptes",
|
"accountmanagement": "Gestion de comptes",
|
||||||
"security": "Sécurité"
|
"security": "Sécurité"
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
|
||||||
@@ -32,7 +32,7 @@ function unsubscribeFromCreator() {
|
|||||||
@click="subscribeToCreator"
|
@click="subscribeToCreator"
|
||||||
color="white"
|
color="white"
|
||||||
>
|
>
|
||||||
S'ABONNER
|
{{ $t('subscribebutton.subscribe') }}
|
||||||
</v-btn>
|
</v-btn>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -44,7 +44,7 @@ function unsubscribeFromCreator() {
|
|||||||
style="transition: background-color 0.3s ease;"
|
style="transition: background-color 0.3s ease;"
|
||||||
color="white"
|
color="white"
|
||||||
>
|
>
|
||||||
SE DESABONNER
|
{{ $t('subscribebutton.unsubscribe') }}
|
||||||
</v-btn>
|
</v-btn>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
<div class="ml-60 text-white mr-10">
|
<div class="ml-60 text-white mr-10">
|
||||||
<div>
|
<div>
|
||||||
<p class="capitalize text-3xl font-bold ">{{ creator.name }}</p>
|
<p class="capitalize text-3xl font-bold ">{{ creator.name }}</p>
|
||||||
<div>{{ creator.subscriberCount }} Abonnés</div>
|
<div>{{ creator.subscriberCount }} {{ $t('banner.subscription') }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
<div class="flex justify-between">
|
<div class="flex justify-between">
|
||||||
<div>
|
<div>
|
||||||
<p class="capitalize text-2xl font-bold">{{ creator.name }}</p>
|
<p class="capitalize text-2xl font-bold">{{ creator.name }}</p>
|
||||||
<div>{{ creator.subscriberCount }} Abonnés</div>
|
<div>{{ creator.subscriberCount }} {{ $t('banner.subscription') }}</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-center">
|
<div class="flex items-center">
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
<div class="flex flex-column text-white capitalize px-2 mt-1">
|
<div class="flex flex-column text-white capitalize px-2 mt-1">
|
||||||
<p class="capitalize text-2xl font-bold">{{ creator.name }}</p>
|
<p class="capitalize text-2xl font-bold">{{ creator.name }}</p>
|
||||||
<div>{{ creator.subscriberCount }} Abonnés</div>
|
<div>{{ creator.subscriberCount }} {{ $t('banner.subscription')}}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex ml-auto text-right text-white text-lg px-3 mt-2">
|
<div class="flex ml-auto text-right text-white text-lg px-3 mt-2">
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
<div class="ml-60 text-white mr-10">
|
<div class="ml-60 text-white mr-10">
|
||||||
<div>
|
<div>
|
||||||
<p class="capitalize text-3xl font-bold ">{{ creator.name }}</p>
|
<p class="capitalize text-3xl font-bold ">{{ creator.name }}</p>
|
||||||
<div>{{ creator.subscriberCount }} Abonnés</div>
|
<div>{{ creator.subscriberCount }} {{ $t('banner.subscription') }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,16 @@
|
|||||||
<v-app-bar-nav-icon @click.stop="sideBarStore.toggle()">
|
<v-app-bar-nav-icon @click.stop="sideBarStore.toggle()">
|
||||||
</v-app-bar-nav-icon>
|
</v-app-bar-nav-icon>
|
||||||
|
|
||||||
<RouterLink to="/">
|
<RouterLink class="d-sm-block d-md-block d-lg-none" to="/">
|
||||||
|
<v-img
|
||||||
|
src="/images/usersmedia/HutopyProfile/profilepictures/profileHutopyProfile01.png"
|
||||||
|
ref="popupButtonRef"
|
||||||
|
alt="Hutopy Logo"
|
||||||
|
class="w-10"
|
||||||
|
></v-img>
|
||||||
|
</RouterLink>
|
||||||
|
|
||||||
|
<RouterLink class="d-none d-lg-flex" to="/">
|
||||||
<v-img
|
<v-img
|
||||||
src="/medias/hutopy.png"
|
src="/medias/hutopy.png"
|
||||||
ref="popupButtonRef"
|
ref="popupButtonRef"
|
||||||
@@ -68,7 +77,9 @@
|
|||||||
<v-icon class="mx-2 cursor-pointer" @click.stop="toggleSearch">mdi-magnify</v-icon>
|
<v-icon class="mx-2 cursor-pointer" @click.stop="toggleSearch">mdi-magnify</v-icon>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<v-icon class="mx-2">mdi-bell-outline</v-icon>
|
<v-btn variant="text" style="margin:0" @click="toggleLanguage">
|
||||||
|
{{ selectedLanguage === 'fr' ? 'Fr' : 'Eng' }}
|
||||||
|
</v-btn>
|
||||||
|
|
||||||
<v-btn variant="text" @click="changeLanguage('fr')">Français</v-btn>
|
<v-btn variant="text" @click="changeLanguage('fr')">Français</v-btn>
|
||||||
<v-btn variant="text" class="mx-2" @click="changeLanguage('en')">English</v-btn>
|
<v-btn variant="text" class="mx-2" @click="changeLanguage('en')">English</v-btn>
|
||||||
@@ -136,28 +147,28 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import {ref, onBeforeUnmount, onBeforeMount} from "vue";
|
import { ref, onBeforeUnmount, onBeforeMount } from "vue";
|
||||||
import {useRouter} from 'vue-router';
|
import { useRouter } from 'vue-router';
|
||||||
import {useSideBarStore} from '@/stores/sideBarStore.js';
|
import { useSideBarStore } from '@/stores/sideBarStore.js';
|
||||||
import {useUserStore} from "@/stores/userStore.js";
|
import { useUserStore } from "@/stores/userStore.js";
|
||||||
import {useAuthStore} from "@/stores/authStore.js";
|
import { useAuthStore } from "@/stores/authStore.js";
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
|
|
||||||
const { locale } = useI18n();
|
const { locale } = useI18n();
|
||||||
const authStore = useAuthStore()
|
const authStore = useAuthStore();
|
||||||
const userStore = useUserStore()
|
const userStore = useUserStore();
|
||||||
const sideBarStore = useSideBarStore()
|
const sideBarStore = useSideBarStore();
|
||||||
|
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const searchQuery = ref("");
|
const searchQuery = ref("");
|
||||||
const showSearch = ref(false);
|
const showSearch = ref(false);
|
||||||
|
|
||||||
// List of available languages
|
|
||||||
const selectedLanguage = ref(locale.value);
|
const selectedLanguage = ref(locale.value);
|
||||||
|
|
||||||
function changeLanguage(lang) {
|
function toggleLanguage() {
|
||||||
locale.value = lang;
|
const newLang = selectedLanguage.value === 'fr' ? 'en' : 'fr';
|
||||||
selectedLanguage.value = lang;
|
locale.value = newLang;
|
||||||
|
selectedLanguage.value = newLang;
|
||||||
}
|
}
|
||||||
|
|
||||||
const onSearch = () => {
|
const onSearch = () => {
|
||||||
@@ -169,7 +180,7 @@ const onSearch = () => {
|
|||||||
if (words.length === 1) {
|
if (words.length === 1) {
|
||||||
router.push(`/@${words[0]}`);
|
router.push(`/@${words[0]}`);
|
||||||
} else {
|
} else {
|
||||||
router.push({name: "browse", query: {q: query}});
|
router.push({ name: "browse", query: { q: query } });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ const authStore = useAuthStore()
|
|||||||
<nav class="h-full grid grid-rows-[60px_1fr_auto]">
|
<nav class="h-full grid grid-rows-[60px_1fr_auto]">
|
||||||
<div></div>
|
<div></div>
|
||||||
|
|
||||||
<div v-if="authStore.isAuthenticated" class="pt-4 px-4">
|
<div v-if="authStore.isAuthenticated" class="pt-4 px-5">
|
||||||
<h2>Abonnements</h2>
|
{{ $t('sidebar.subscriptionTitle') }}
|
||||||
<subscription-list>
|
<subscription-list>
|
||||||
<template v-slot:default>
|
<template v-slot:default>
|
||||||
<span>Aucun abonnement</span>
|
<span>Aucun abonnement</span>
|
||||||
|
|||||||
@@ -17,17 +17,17 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="py-4">
|
<div class="py-4">
|
||||||
<RouterLink class="nav-button font-weight-bold" to="/join">Aidez-nous</RouterLink>
|
<RouterLink class="nav-button font-weight-bold" to="/join">{{ $t('sitemenu.HelpUs') }}</RouterLink>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="text-center ">
|
<div class="text-center ">
|
||||||
<RouterLink class="nav-button" to="/helpandcontact">Aide & Contact</RouterLink>
|
<RouterLink class="nav-button" to="/helpandcontact">{{ $t('sitemenu.HelpAndContact') }}</RouterLink>
|
||||||
<RouterLink class="nav-button" to="/faq">FAQ</RouterLink>
|
<RouterLink class="nav-button" to="/faq">{{ $t('sitemenu.FAQ') }}</RouterLink>
|
||||||
<RouterLink class="nav-button" to="/guideforcreators">Guide pour les créateurs</RouterLink>
|
<RouterLink class="nav-button" to="/guideforcreators">{{ $t('sitemenu.CreatorGuide') }}</RouterLink>
|
||||||
<RouterLink class="nav-button" to="/termsandconditions">Conditions générales</RouterLink>
|
<RouterLink class="nav-button" to="/termsandconditions">{{ $t('sitemenu.TermsAndConditions') }}</RouterLink>
|
||||||
<RouterLink class="nav-button" to="/contentpolicy">Politique de Contenu</RouterLink>
|
<RouterLink class="nav-button" to="/contentpolicy">{{ $t('sitemenu.ContentPolicy') }}</RouterLink>
|
||||||
<RouterLink class="nav-button" to="/about">À Propos</RouterLink>
|
<RouterLink class="nav-button" to="/about">{{ $t('sitemenu.About') }}</RouterLink>
|
||||||
<RouterLink class="nav-button" to="/pricing">Frais</RouterLink>
|
<RouterLink class="nav-button" to="/pricing">{{ $t('sitemenu.Pricing') }}</RouterLink>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user