Client - update documentation link

This commit is contained in:
Sam 2023-06-28 09:06:31 +02:00
parent b647f25e7e
commit 662ad8fbfa
2 changed files with 17 additions and 2 deletions

View File

@ -5,7 +5,8 @@
<p>
<i class="fa fa-book fa-padding" aria-hidden="true"></i>
<a
href="https://samr1.github.io/FitTrackee/"
class="documentation-link"
:href="documentationLink"
target="_blank"
rel="noopener noreferrer"
>
@ -72,6 +73,12 @@
const weather_provider: ComputedRef<Record<string, string>> = computed(() =>
get_weather_provider()
)
const language: ComputedRef<string> = computed(
() => store.getters[ROOT_STORE.GETTERS.LANGUAGE]
)
const documentationLink: ComputedRef<string> = computed(() =>
get_documentation_link()
)
function get_weather_provider() {
const weather_provider: Record<string, string> = {}
@ -81,6 +88,14 @@
}
return weather_provider
}
function get_documentation_link() {
let link = 'https://samr1.github.io/FitTrackee/'
if (language.value === 'fr') {
link += 'fr/'
}
return link
}
</script>
<style lang="scss" scoped>

View File

@ -4,7 +4,7 @@
"CONTACT": "contact",
"DAY": "jour | jours",
"DISPLAYED": "Affiché",
"DOCUMENTATION": "documentation (en)",
"DOCUMENTATION": "documentation",
"HERE": "ici",
"HIDDEN": "Masqué",
"HOME": "Accueil",