diff --git a/js/src/components/Event/FullAddressAutoComplete.vue b/js/src/components/Event/FullAddressAutoComplete.vue index 3fc737ba5..a803c8ada 100644 --- a/js/src/components/Event/FullAddressAutoComplete.vue +++ b/js/src/components/Event/FullAddressAutoComplete.vue @@ -258,7 +258,7 @@ const asyncData = async (query: string): Promise => { searchAddress(undefined, { query: searchQuery.value, - locale: locale.value, + locale: locale, type: props.resultType, }); }; @@ -322,7 +322,7 @@ const reverseGeoCode = (e: LatLng, zoom: number) => { latitude: e.lat, longitude: e.lng, zoom, - locale: locale.value as string, + locale: locale as unknown as string, }); }; diff --git a/js/src/components/Participation/ParticipationWithoutAccount.vue b/js/src/components/Participation/ParticipationWithoutAccount.vue index 8b9a24661..4edfdf113 100644 --- a/js/src/components/Participation/ParticipationWithoutAccount.vue +++ b/js/src/components/Participation/ParticipationWithoutAccount.vue @@ -270,7 +270,7 @@ const joinEvent = async (): Promise => { actorId: anonymousActorId.value, email: anonymousParticipation.email, message: anonymousParticipation.message, - locale: locale.value, + locale: locale, timezone: Intl.DateTimeFormat().resolvedOptions().timeZone, }); }; diff --git a/js/src/components/Settings/SettingsOnboarding.vue b/js/src/components/Settings/SettingsOnboarding.vue index fa936c5ad..e9a489b7c 100644 --- a/js/src/components/Settings/SettingsOnboarding.vue +++ b/js/src/components/Settings/SettingsOnboarding.vue @@ -71,7 +71,7 @@ const timezone = Intl.DateTimeFormat().resolvedOptions().timeZone; const { loggedUser } = useUserSettings(); onMounted(() => { - updateLocale(locale.value as string); + updateLocale(locale as unknown as string); doUpdateSetting({ timezone }); }); diff --git a/js/src/views/User/RegisterView.vue b/js/src/views/User/RegisterView.vue index 12515ae1d..1f138cdae 100644 --- a/js/src/views/User/RegisterView.vue +++ b/js/src/views/User/RegisterView.vue @@ -295,7 +295,7 @@ onError((error) => { const submit = async (): Promise => { sendingForm.value = true; - credentials.locale = locale.value as string; + credentials.locale = locale as unknown as string; try { emailErrors.value = []; passwordErrors.value = [];