-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
7f4cf22
commit c5fd458
Showing
7 changed files
with
102 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<template> | ||
<UButton | ||
to="https://github.com/p2m2/EP2M2/issues/new" | ||
target="_blank" | ||
icon="i-heroicons-bug-ant-solid" | ||
color="purple" | ||
> | ||
{{ $t('message.addIssue') }} | ||
</UButton> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<!-- | ||
This file contain | ||
|
||
--> | ||
|
||
<script setup lang="ts"> | ||
import {computed} from "vue"; | ||
import { useI18n, useSwitchLocalePath } from "#imports"; | ||
const { t, locale, locales } = useI18n(); | ||
const switchLocalePath = useSwitchLocalePath(); | ||
|
||
const avaiblesLang = computed(() => { | ||
return locales.value.filter(i => (i.code) !== locale.value). | ||
map((i18n)=> [{ | ||
label:i18n.name, | ||
to: switchLocalePath(i18n.code) | ||
}]); | ||
}); | ||
|
||
</script> | ||
|
||
<template> | ||
<UDropdown | ||
:items="avaiblesLang" | ||
mode="hover" | ||
:popper="{ placement: 'bottom-start' }" | ||
> | ||
<UButton | ||
icon="i-heroicons-language" | ||
color="white" | ||
size="xl" | ||
:title="t('button.lang')" | ||
/> | ||
</UDropdown> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,19 @@ | ||
export default { | ||
welcome: "Bonjour", | ||
welcome: "Welcom", | ||
button:{ | ||
lang:{ | ||
text: "langage", | ||
alt: "Change langage" | ||
} | ||
lang: "Change langage", | ||
home: "Home", | ||
help: "Help", | ||
topProfOut: "Profile under menu and logout", | ||
submit: "Submit" | ||
}, | ||
label:{ | ||
profile: "Profile", | ||
logout: "Logout", | ||
email: "Email", | ||
password: "Password" | ||
}, | ||
message:{ | ||
addIssue: "There is a bug" | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,21 @@ | ||
export default { | ||
welcome: "Bonjour", | ||
button:{ | ||
lang:{ | ||
text: "langue", | ||
alt: "Changer de langue" | ||
} | ||
lang: "Changer de langue", | ||
home: "Accueil", | ||
help: "Aide", | ||
topProfOut: "Accéder au sous-menu profile et déconnection", | ||
submit: "Valider" | ||
}, | ||
label:{ | ||
profile: "Profile", | ||
logout: "Déconnexion", | ||
email: "E-mail", | ||
password: "Mot de passe" | ||
}, | ||
message:{ | ||
addIssue: "Un problème dit le" | ||
} | ||
|
||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters