Skip to content

Commit

Permalink
Merge pull request #35 from monster1935/feat/x
Browse files Browse the repository at this point in the history
feat: set different tg url in different language
  • Loading branch information
monster1935 authored Sep 14, 2024
2 parents 3f9f270 + a452f9b commit 8bd3f8a
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 8bd3f8a

Please sign in to comment.