Skip to content

Commit 39f9daf

Browse files
committed
add translations
1 parent e5aeb2c commit 39f9daf

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

adminforth/plugins/open-signup/custom/SignupPage.vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@
3131
<!-- Modal header -->
3232
<div class="flex items-center justify-between p-4 md:p-5 border-b rounded-t dark:border-gray-600">
3333
<h3 class="text-xl font-semibold text-gray-900 dark:text-white">
34-
Sign up into {{ coreStore.config?.brandName }}
34+
{{$t('Sign up into')}} {{ coreStore.config?.brandName }}
3535
</h3>
3636
</div>
3737
<!-- Modal body -->
3838
<div class="p-4 md:p-5">
3939
<form v-if="!requestSent" class="space-y-4" role="alert" @submit.prevent>
4040
<div v-if="!verifyToken" class="relative">
41-
<label for="email" class="block mb-2 text-sm font-medium text-gray-900 dark:text-white">Your email</label>
41+
<label for="email" class="block mb-2 text-sm font-medium text-gray-900 dark:text-white">{{$t('Your email')}}</label>
4242
<input type="email" name="email" id="email"
4343
tabindex="1"
4444
autocomplete="username"
@@ -50,7 +50,7 @@
5050
/>
5151
</div>
5252
<div v-if="isPasswordNeeded" class="relative">
53-
<label for="password" class="block mb-2 text-sm font-medium text-gray-900 dark:text-white">New password</label>
53+
<label for="password" class="block mb-2 text-sm font-medium text-gray-900 dark:text-white">{{$t('New password')}}</label>
5454
<input
5555
tabindex="2"
5656
autocomplete="new-password"
@@ -74,7 +74,7 @@
7474
</div>
7575

7676
<div v-if="isPasswordNeeded" class="relative">
77-
<label for="password_confirmation" class="block mb-2 text-sm font-medium text-gray-900 dark:text-white">Confirm new password</label>
77+
<label for="password_confirmation" class="block mb-2 text-sm font-medium text-gray-900 dark:text-white">{{$t('Confirm new password')}}</label>
7878
<input
7979
ref="passwordConfirmationInput"
8080
autocomplete="new-password"
@@ -100,7 +100,7 @@
100100
<svg class="flex-shrink-0 inline w-4 h-4 me-3" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20">
101101
<path d="M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"/>
102102
</svg>
103-
<span class="sr-only">Info</span>
103+
<span class="sr-only">{{$t('Info')}}</span>
104104
<div>
105105
{{ validationError || error }}
106106
</div>
@@ -113,15 +113,15 @@
113113
class="w-full"
114114
:loader="inProgress"
115115
>
116-
Sign up
116+
{{$t('Sign up')}}
117117
</Button>
118118
</form>
119119
<!-- END of set new paasord -->
120120
<div v-else class="flex items center justify-center p-4 mb-4 text-sm text-green-800 rounded-lg bg-green-50 dark:bg-green-800 dark:text-green-400" role="alert">
121-
Please check your email at {{ sentToEmail }} to confirm your email address.
121+
{{$t('Please check your email at')}} {{ sentToEmail }} {{$t('to confirm your email address.')}}
122122
</div>
123123
<p class="text-gray-500 dark:text-gray-400 font-sm text-right mt-3">
124-
or <Link to="/login">{{ toLoginText }}</Link>
124+
{{$t('or')}} <Link to="/login">{{ toLoginText }}</Link>
125125
</p>
126126
</div>
127127
</div>

adminforth/plugins/two-factors-auth/custom/TwoFactorsConfirmation.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<!-- Modal content -->
1414
<div class="relative bg-white rounded-lg shadow dark:bg-gray-700 dark:shadow-black text-gray-500" >
1515
<div class="p-8 w-full max-w-md max-h-full" >
16-
<div class="m-3">Please enter your authenticator code </div>
16+
<div class="m-3">{{$t('Please enter your authenticator code')}} </div>
1717
<div class="my-4 flex justify-center items-center">
1818
<v-otp-input
1919
ref="code"
@@ -28,7 +28,7 @@
2828
/>
2929
</div>
3030
<!-- <Vue2FACodeInput v-model="code"/> -->
31-
<LinkButton to="/login" class="w-full">Back to login</LinkButton>
31+
<LinkButton to="/login" class="w-full">{{$t('Back to login')}}</LinkButton>
3232
</div>
3333
</div>
3434
</div>

adminforth/plugins/two-factors-auth/custom/TwoFactorsSetup.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313
<!-- Modal content -->
1414
<div class="relative bg-white rounded-lg shadow dark:bg-gray-700 dark:shadow-black text-gray-500" >
1515
<div class="p-8 w-full max-w-md max-h-full" >
16-
<div class="m-3" >Scan this QR code with your authenticator app or open by <a class="text-blue-600" :href="totpUri">click</a></div>
16+
<div class="m-3" >{{$t('Scan this QR code with your authenticator app or open by')}} <a class="text-blue-600" :href="totpUri">{{$t('click')}}</a></div>
1717
<div class="flex justify-center m-3" >
1818
<img :src="totpQrCode" alt="QR code" />
1919
</div>
2020
<div class="m-3 ">
21-
<div class="m-1">Or copy this code to app manually:</div>
21+
<div class="m-1">{{$t('Or copy this code to app manually:')}}</div>
2222
<div class="w-full max-w-[46rem]">
2323
<div class="relative">
24-
<label for="npm-install-copy-text" class="sr-only">Label</label>
24+
<label for="npm-install-copy-text" class="sr-only">{{$t('Label')}}</label>
2525
<input id="npm-install-copy-text" type="text" class="col-span-10 bg-gray-50 border border-gray-300 text-gray-500 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full px-2.5 py-4 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500 pr-12" :value="totp.newSecret" readonly>
2626
<button @click="onCopyClick" data-copy-to-clipboard-target="npm-install-copy-text" class="absolute end-2.5 top-1/2 -translate-y-1/2 text-gray-900 dark:text-gray-400 hover:bg-gray-100 dark:bg-gray-800 dark:border-gray-600 dark:hover:bg-gray-700 rounded-lg py-2 px-2.5 inline-flex items-center justify-center bg-white border-gray-200 border">
2727
<span id="default-message" class="inline-flex items-center">
@@ -48,10 +48,10 @@
4848
<!-- <Vue2FACodeInput v-model="code" autofocus /> -->
4949
<div class="flex flex-row gap-2.5">
5050
<LinkButton to="/login" class="w-full">
51-
Back to login
51+
{{$t('Back to login')}}
5252
</LinkButton>
5353
<Button v-if="skipAllowed" @click="handleSkip" class="w-full">
54-
Skip for now
54+
{{$t('Skip for now')}}
5555
</Button>
5656
</div>
5757
</div>

0 commit comments

Comments
 (0)