We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cfba58d commit eccf682Copy full SHA for eccf682
src/pages/about/index.vue
@@ -53,12 +53,18 @@
53
<script>
54
import { version } from '/package.json'
55
import SponsorDialog from './components/SponsorDialog/index.vue'
56
+import { i18n } from '$/locales/index.js'
57
58
export default {
59
name: 'About',
60
components: {
61
SponsorDialog,
62
},
63
+ setup() {
64
+ return {
65
+ locale: i18n.global.locale,
66
+ }
67
+ },
68
data() {
69
return {
70
loading: false,
@@ -79,7 +85,11 @@ export default {
79
85
this.$refs.sponsorDialogRef.open()
80
86
81
87
onClickDocs() {
82
- window.open('https://escrcpy.viarotel.eu.org/')
88
+ const locale = {
89
+ 'zh-CN': 'zhHans',
90
+ }[this.locale] || ''
91
+
92
+ window.open(`https://escrcpy.viarotel.eu.org/${locale}`)
83
93
84
94
handleUpdate() {
95
this.loading = true
0 commit comments