mirror of
https://github.com/umami-software/umami.git
synced 2026-02-06 05:37:20 +01:00
Changed fetch response.
This commit is contained in:
parent
7a0575e33a
commit
26463973cb
8 changed files with 36 additions and 13 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue