Client - update documentation link
This commit is contained in:
parent
b647f25e7e
commit
662ad8fbfa
@ -5,7 +5,8 @@
|
|||||||
<p>
|
<p>
|
||||||
<i class="fa fa-book fa-padding" aria-hidden="true"></i>
|
<i class="fa fa-book fa-padding" aria-hidden="true"></i>
|
||||||
<a
|
<a
|
||||||
href="https://samr1.github.io/FitTrackee/"
|
class="documentation-link"
|
||||||
|
:href="documentationLink"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
>
|
>
|
||||||
@ -72,6 +73,12 @@
|
|||||||
const weather_provider: ComputedRef<Record<string, string>> = computed(() =>
|
const weather_provider: ComputedRef<Record<string, string>> = computed(() =>
|
||||||
get_weather_provider()
|
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() {
|
function get_weather_provider() {
|
||||||
const weather_provider: Record<string, string> = {}
|
const weather_provider: Record<string, string> = {}
|
||||||
@ -81,6 +88,14 @@
|
|||||||
}
|
}
|
||||||
return weather_provider
|
return weather_provider
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function get_documentation_link() {
|
||||||
|
let link = 'https://samr1.github.io/FitTrackee/'
|
||||||
|
if (language.value === 'fr') {
|
||||||
|
link += 'fr/'
|
||||||
|
}
|
||||||
|
return link
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"CONTACT": "contact",
|
"CONTACT": "contact",
|
||||||
"DAY": "jour | jours",
|
"DAY": "jour | jours",
|
||||||
"DISPLAYED": "Affiché",
|
"DISPLAYED": "Affiché",
|
||||||
"DOCUMENTATION": "documentation (en)",
|
"DOCUMENTATION": "documentation",
|
||||||
"HERE": "ici",
|
"HERE": "ici",
|
||||||
"HIDDEN": "Masqué",
|
"HIDDEN": "Masqué",
|
||||||
"HOME": "Accueil",
|
"HOME": "Accueil",
|
||||||
|
Loading…
Reference in New Issue
Block a user