mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-25 15:15:52 +00:00
fix(faq): add language query in FAQ store action. (#15079)
Co-authored-by: Sabe Jones <sabe@habitica.com>
This commit is contained in:
parent
e5b873c9aa
commit
8b2e13b5fd
1 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue