From 8b2e13b5fd5b78e91abbba5368d884c732f9bc27 Mon Sep 17 00:00:00 2001 From: KasaHNO3 Date: Thu, 11 Jan 2024 07:00:13 +0800 Subject: [PATCH] fix(faq): add language query in FAQ store action. (#15079) Co-authored-by: Sabe Jones --- website/client/src/store/actions/faq.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/website/client/src/store/actions/faq.js b/website/client/src/store/actions/faq.js index 80420774ea..ab63ec219c 100644 --- a/website/client/src/store/actions/faq.js +++ b/website/client/src/store/actions/faq.js @@ -1,7 +1,9 @@ import axios from 'axios'; -export async function getFAQ () { - const url = '/api/v4/faq?platform=web'; +export async function getFAQ (store) { + const currentLocale = store.state.i18n.selectedLanguage.code; + + const url = `/api/v4/faq?platform=web&language=${currentLocale}`; const response = await axios.get(url); return response.data.data; }