translate about / home button

This commit is contained in:
lesion
2022-11-25 09:47:46 +01:00
parent 410736b1bb
commit dbcf0bd051
5 changed files with 14 additions and 10 deletions

View File

@@ -46,9 +46,9 @@ export default {
if (!this.settings || !this.settings.footerLinks) return []
return this.settings.footerLinks.map(link => {
if (/^https?:\/\//.test(link.href)) {
return { href: link.href, label: link.label }
return { href: link.href, label: link.label.startsWith('common.') ? this.$t(link.label) : link.label }
} else {
return { to: link.href, label: link.label }
return { to: link.href, label: link.label.startsWith('common.') ? this.$t(link.label) : link.label }
}
})
}