Skip to content

Commit

Permalink
feat: set different tg url in different language
Browse files Browse the repository at this point in the history
  • Loading branch information
monster1935 committed Sep 14, 2024
1 parent 3f9f270 commit a452f9b
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions components/new-community-icon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@
<a class="hover:opacity-75 cursor-pointer mr-4" target="_blank" href="https://discord.gg/foxwallet">
<img src="@/assets/new-img/dc.svg" alt="dc">
</a>
<a class="hover:opacity-75 cursor-pointer mr-4" target="_blank" href="https://t.me/FoxWallet_EN">
<a class="hover:opacity-75 cursor-pointer mr-4" target="_blank" :href="tgUrl">
<img src="@/assets/new-img/tg.svg" alt="tg">
</a>
<a class="hover:opacity-75 cursor-pointer mr-4" target="_blank" href="https://www.youtube.com/channel/UCt9O4HUkuNutXvFoN6NZh-w">
<a
class="hover:opacity-75 cursor-pointer mr-4"
target="_blank"
href="https://www.youtube.com/channel/UCt9O4HUkuNutXvFoN6NZh-w"
>
<img src="@/assets/new-img/youtube.svg" alt="youtube">
</a>
<a class="hover:opacity-75 cursor-pointer mr-4" target="_blank" href="https://medium.com/@FoxWallet">
Expand All @@ -27,6 +31,17 @@ export default {
default: 'small',
type: String
}
}
},
data() {
return {
tgUrl: 'https://t.me/FoxWallet_EN',
}
},
mounted() {
const language = navigator.language
if (language === 'zh-CN') {
this.tgUrl = 'https://t.me/FoxWallet_CN'
}
},
}
</script>

0 comments on commit a452f9b

Please sign in to comment.