Use the correct value of current locale
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
6f9940a0a0
commit
fc16014b2a
@ -258,7 +258,7 @@ const asyncData = async (query: string): Promise<void> => {
|
|||||||
|
|
||||||
searchAddress(undefined, {
|
searchAddress(undefined, {
|
||||||
query: searchQuery.value,
|
query: searchQuery.value,
|
||||||
locale: locale.value,
|
locale: locale,
|
||||||
type: props.resultType,
|
type: props.resultType,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
@ -322,7 +322,7 @@ const reverseGeoCode = (e: LatLng, zoom: number) => {
|
|||||||
latitude: e.lat,
|
latitude: e.lat,
|
||||||
longitude: e.lng,
|
longitude: e.lng,
|
||||||
zoom,
|
zoom,
|
||||||
locale: locale.value as string,
|
locale: locale as unknown as string,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -270,7 +270,7 @@ const joinEvent = async (): Promise<void> => {
|
|||||||
actorId: anonymousActorId.value,
|
actorId: anonymousActorId.value,
|
||||||
email: anonymousParticipation.email,
|
email: anonymousParticipation.email,
|
||||||
message: anonymousParticipation.message,
|
message: anonymousParticipation.message,
|
||||||
locale: locale.value,
|
locale: locale,
|
||||||
timezone: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
timezone: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -71,7 +71,7 @@ const timezone = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|||||||
const { loggedUser } = useUserSettings();
|
const { loggedUser } = useUserSettings();
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
updateLocale(locale.value as string);
|
updateLocale(locale as unknown as string);
|
||||||
doUpdateSetting({ timezone });
|
doUpdateSetting({ timezone });
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -295,7 +295,7 @@ onError((error) => {
|
|||||||
|
|
||||||
const submit = async (): Promise<void> => {
|
const submit = async (): Promise<void> => {
|
||||||
sendingForm.value = true;
|
sendingForm.value = true;
|
||||||
credentials.locale = locale.value as string;
|
credentials.locale = locale as unknown as string;
|
||||||
try {
|
try {
|
||||||
emailErrors.value = [];
|
emailErrors.value = [];
|
||||||
passwordErrors.value = [];
|
passwordErrors.value = [];
|
||||||
|
Loading…
Reference in New Issue
Block a user