fix(faq): add language query in FAQ store action. (#15079)
Co-authored-by: Sabe Jones <sabe@habitica.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user