Changed fetch response.

This commit is contained in:
Mike Cao committed 2025-02-08 23:38:21 -08:00
1 parent 7a0575e33a
commit 26463973cb
8 files changed
+36 -13

No files matched your search

+1 -1
View File
@@ -10,7 +10,7 @@ export function useLanguageNames(locale) {
const [list, setList] = useState(languageNames[locale] || enUS);
async function loadData(locale) {
const data = await httpGet(`${process.env.basePath || ''}/intl/language/${locale}.json`);
const { data } = await httpGet(`${process.env.basePath || ''}/intl/language/${locale}.json`);
if (data) {
languageNames[locale] = data;