@@ -70,14 +70,14 @@ import { I18nVariables, ViewType, en, merge } from '@supabase/auth-ui-shared'
70
70
import { createStitches } from ' @stitches/core'
71
71
import cloneDeep from ' lodash.clonedeep'
72
72
73
- import { AuthProps , AuthViewKey } from ' ./types'
74
- import SocialAuthContainer from ' ./auth/ SocialAuthContainer.vue'
75
- import EmailAuth from ' ./auth/ EmailAuth.vue'
76
- import SocialAuth from ' ./auth/ SocialAuth.vue'
77
- import MagicLink from ' ./auth/ MagicLink.vue'
78
- import ForgottenPassword from ' ./auth/ ForgottenPassword.vue'
79
- import UpdatePassword from ' ./auth/ UpdatePassword.vue'
80
- import VerifyOtp from ' ./auth/ VerifyOtp.vue'
73
+ import { AuthProps , AuthViewKey } from ' .. /types'
74
+ import SocialAuthContainer from ' ./SocialAuthContainer.vue'
75
+ import EmailAuth from ' ./EmailAuth.vue'
76
+ import SocialAuth from ' ./SocialAuth.vue'
77
+ import MagicLink from ' ./MagicLink.vue'
78
+ import ForgottenPassword from ' ./ForgottenPassword.vue'
79
+ import UpdatePassword from ' ./UpdatePassword.vue'
80
+ import VerifyOtp from ' ./VerifyOtp.vue'
81
81
82
82
const props = withDefaults (defineProps <AuthProps >(), {
83
83
view: ' sign_in' ,
@@ -100,7 +100,11 @@ provide(AuthViewKey, {
100
100
/**
101
101
* Localization support
102
102
*/
103
- const i18n: I18nVariables = merge (en , props ?.localization ?.variables ?? {})
103
+ const i18n = computed <I18nVariables >(() => {
104
+ const defaultLanguage = cloneDeep (en )
105
+ const newlanguage = cloneDeep (props ?.localization ?.variables )
106
+ return merge (defaultLanguage , newlanguage ?? {})
107
+ })
104
108
105
109
/**
106
110
* Simple boolean to detect if authView 'sign_in' or 'sign_up' or 'magic_link' is used
0 commit comments