File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 3
3
<div v-if =" error" class =" py-8 px-4 mx-auto max-w-screen-xl lg:py-16 lg:px-6" >
4
4
<div class =" mx-auto max-w-screen-sm text-center" >
5
5
<h1 class =" mb-4 text-7xl tracking-tight font-extrabold lg:text-9xl text-lightPrimary dark:text-darkPrimary" >
6
- Oops!
6
+ {{$t(' Oops!')}}
7
7
</h1 >
8
8
<p class =" mb-4 text-3xl tracking-tight font-bold text-gray-900 md:text-4xl dark:text-white" >
9
- Authentication Failed
9
+ {{$t(' Authentication Failed')}}
10
10
</p >
11
11
<p class =" mb-4 text-lg font-light text-gray-500 dark:text-gray-400" >
12
12
{{ error }}
13
13
</p >
14
14
<div class =" flex justify-center" >
15
- <LinkButton to =" /login" >Back to Login</LinkButton >
15
+ <LinkButton to =" /login" >{{$t(' Back to Login')}} </LinkButton >
16
16
</div >
17
17
</div >
18
18
</div >
@@ -26,6 +26,9 @@ import { useUserStore } from '@/stores/user';
26
26
import { useRouter , useRoute } from ' vue-router' ;
27
27
import { callAdminForthApi } from ' @/utils' ;
28
28
import { Spinner , LinkButton } from ' @/afcl' ;
29
+ import { useI18n } from ' vue-i18n' ;
30
+
31
+ const { t } = useI18n ();
29
32
30
33
const router = useRouter ();
31
34
const userStore = useUserStore ();
@@ -57,7 +60,7 @@ onMounted(async () => {
57
60
error .value = response .error ;
58
61
}
59
62
} else {
60
- error .value = ' Invalid authentication request. Missing required parameters.' ;
63
+ error .value = t ( ' Invalid authentication request. Missing required parameters.' ) ;
61
64
}
62
65
});
63
66
</script >
You can’t perform that action at this time.
0 commit comments