mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 22:27:16 +01:00
Changed fetch response.
This commit is contained in:
parent
7a0575e33a
commit
26463973cb
8 changed files with 36 additions and 13 deletions
|
|
@ -20,7 +20,9 @@ export function useLocale() {
|
|||
const dateLocale = getDateLocale(locale);
|
||||
|
||||
async function loadMessages(locale: string) {
|
||||
messages[locale] = await httpGet(`${process.env.basePath || ''}/intl/messages/${locale}.json`);
|
||||
const { data } = await httpGet(`${process.env.basePath || ''}/intl/messages/${locale}.json`);
|
||||
|
||||
messages[locale] = data;
|
||||
}
|
||||
|
||||
async function saveLocale(value: string) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue