Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit afd453f

Browse files
committed
⚒️ faq i18n translation
1 parent 6f7976a commit afd453f

File tree

2 files changed

+2
-90
lines changed

2 files changed

+2
-90
lines changed

components/rmrk/Faq.vue

Lines changed: 0 additions & 88 deletions
This file was deleted.

pages/rmrk/faq.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@ import i18n from '@/i18n'
4444
export default class Faq extends Vue {
4545
public faqQuestionsAnswers: any = []
4646
47-
@Watch('$i18n.locale')
47+
@Watch('$i18n.locale', { immediate: true, deep: true })
4848
public i18nLoadQandA(): any {
49+
i18n.locale = this.$i18n.locale
4950
let i: number
5051
const qa: any = []
5152
for (i = 1; i < 26; i++) {
5253
qa.push([i18n.t(`faq.q.${i}`), i18n.t(`faq.a.${i}.m`)])
5354
}
54-
5555
this.faqQuestionsAnswers = qa
5656
}
5757

0 commit comments

Comments
 (0)