File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 33 <div v-if =" error" class =" py-8 px-4 mx-auto max-w-screen-xl lg:py-16 lg:px-6" >
44 <div class =" mx-auto max-w-screen-sm text-center" >
55 <h1 class =" mb-4 text-7xl tracking-tight font-extrabold lg:text-9xl text-lightPrimary dark:text-darkPrimary" >
6- Oops!
6+ {{$t(' Oops!')}}
77 </h1 >
88 <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')}}
1010 </p >
1111 <p class =" mb-4 text-lg font-light text-gray-500 dark:text-gray-400" >
1212 {{ error }}
1313 </p >
1414 <div class =" flex justify-center" >
15- <LinkButton to =" /login" >Back to Login</LinkButton >
15+ <LinkButton to =" /login" >{{$t(' Back to Login')}} </LinkButton >
1616 </div >
1717 </div >
1818 </div >
@@ -26,6 +26,9 @@ import { useUserStore } from '@/stores/user';
2626import { useRouter , useRoute } from ' vue-router' ;
2727import { callAdminForthApi } from ' @/utils' ;
2828import { Spinner , LinkButton } from ' @/afcl' ;
29+ import { useI18n } from ' vue-i18n' ;
30+
31+ const { t } = useI18n ();
2932
3033const router = useRouter ();
3134const userStore = useUserStore ();
@@ -57,7 +60,7 @@ onMounted(async () => {
5760 error .value = response .error ;
5861 }
5962 } else {
60- error .value = ' Invalid authentication request. Missing required parameters.' ;
63+ error .value = t ( ' Invalid authentication request. Missing required parameters.' ) ;
6164 }
6265});
6366 </script >
You can’t perform that action at this time.
0 commit comments