mirror of
https://git.pleroma.social/sjw/pleroma-fe.git
synced 2024-11-15 11:06:16 +01:00
updated localization
This commit is contained in:
parent
54c0262c00
commit
291da74630
@ -2,6 +2,10 @@
|
||||
<div class="login panel panel-default">
|
||||
<!-- Default panel contents -->
|
||||
|
||||
<div class="panel-heading">
|
||||
{{$t(`login.heading.${loginForm}`)}}
|
||||
</div>
|
||||
|
||||
<component
|
||||
:is="loginForm"
|
||||
@change-form="setForm"
|
||||
|
@ -1,37 +1,32 @@
|
||||
<template>
|
||||
<div>
|
||||
<div class="panel-heading">
|
||||
{{$t('login.login')}}
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<form class='login-form' @submit.prevent='submit'>
|
||||
<div class='form-group'>
|
||||
<label for='username'>{{$t('login.username')}}</label>
|
||||
<input :disabled="loggingIn" v-model='user.username'
|
||||
class='form-control' id='username'
|
||||
:placeholder="$t('login.placeholder')">
|
||||
</div>
|
||||
<div class='form-group'>
|
||||
<label for='password'>{{$t('login.password')}}</label>
|
||||
<input :disabled="loggingIn" v-model='user.password'
|
||||
class='form-control' id='password' type='password'>
|
||||
</div>
|
||||
|
||||
<div class="panel-body">
|
||||
<form class='login-form' @submit.prevent='submit'>
|
||||
<div class='form-group'>
|
||||
<label for='username'>{{$t('login.username')}}</label>
|
||||
<input :disabled="loggingIn" v-model='user.username'
|
||||
class='form-control' id='username'
|
||||
:placeholder="$t('login.placeholder')">
|
||||
</div>
|
||||
<div class='form-group'>
|
||||
<label for='password'>{{$t('login.password')}}</label>
|
||||
<input :disabled="loggingIn" v-model='user.password'
|
||||
class='form-control' id='password' type='password'>
|
||||
</div>
|
||||
<div class='form-group'>
|
||||
<div class='login-bottom'>
|
||||
<div>
|
||||
<router-link :to="{name: 'registration'}"
|
||||
v-if='registrationOpen'
|
||||
class='register'>{{$t('login.register')}}
|
||||
</router-link>
|
||||
</div>
|
||||
<button :disabled="loggingIn" type='submit' class='btn btn-default'>
|
||||
{{$t('login.login')}}
|
||||
</button>
|
||||
<div class='form-group'>
|
||||
<div class='login-bottom'>
|
||||
<div>
|
||||
<router-link :to="{name: 'registration'}"
|
||||
v-if='registrationOpen'
|
||||
class='register'>{{$t('login.register')}}
|
||||
</router-link>
|
||||
</div>
|
||||
<button :disabled="loggingIn" type='submit' class='btn btn-default'>
|
||||
{{$t('login.login')}}
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</template>
|
||||
<script src="./password_form.js" ></script>
|
||||
<script src="./password_form.js"></script>
|
||||
|
@ -1,33 +1,27 @@
|
||||
<template>
|
||||
<div>
|
||||
<div class="panel-heading">
|
||||
{{$t('login.two_factor_recovery')}}
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<form class='login-form' @submit.prevent='submit'>
|
||||
<div class='form-group'>
|
||||
<label for='code'>
|
||||
{{$t('login.recovery_code')}}
|
||||
</label>
|
||||
<input v-model='code' class='form-control' id='code'>
|
||||
</div>
|
||||
|
||||
<div class="panel-body">
|
||||
<form class='login-form' @submit.prevent='submit'>
|
||||
<div class='form-group'>
|
||||
<label for='code'>
|
||||
{{$t('login.recovery_code')}}
|
||||
</label>
|
||||
<input v-model='code' class='form-control' id='code'>
|
||||
</div>
|
||||
|
||||
<div class='form-group'>
|
||||
<div class='login-bottom'>
|
||||
<div>
|
||||
<a href="#" @click.prevent="gotoOtp">
|
||||
{{$t('login.enter_two_factor_code')}}
|
||||
</a>
|
||||
</div>
|
||||
<button type='submit' class='btn btn-default'>
|
||||
{{$t('login.verify')}}
|
||||
</button>
|
||||
<div class='form-group'>
|
||||
<div class='login-bottom'>
|
||||
<div>
|
||||
<a href="#" @click.prevent="gotoOtp">
|
||||
{{$t('login.enter_two_factor_code')}}
|
||||
</a>
|
||||
</div>
|
||||
<button type='submit' class='btn btn-default'>
|
||||
{{$t('login.verify')}}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</template>
|
||||
<script src="./recovery_form.js" ></script>
|
||||
|
@ -1,30 +1,24 @@
|
||||
<template>
|
||||
<div>
|
||||
<div class="panel-heading">
|
||||
{{$t('login.login')}}
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<form class='login-form' @submit.prevent='submit'>
|
||||
<div class="form-group">
|
||||
<p>{{$t('login.description')}}</p>
|
||||
</div>
|
||||
|
||||
<div class="panel-body">
|
||||
<form class='login-form' @submit.prevent='submit'>
|
||||
<div class="form-group">
|
||||
<p>{{$t('login.description')}}</p>
|
||||
</div>
|
||||
|
||||
<div class='form-group'>
|
||||
<div class='login-bottom'>
|
||||
<div>
|
||||
<router-link :to="{name: 'registration'}"
|
||||
v-if='registrationOpen'
|
||||
class='register'>{{$t('login.register')}}
|
||||
</router-link>
|
||||
</div>
|
||||
<button :disabled="loggingIn" type='submit' class='btn btn-default'>
|
||||
{{$t('login.login')}}
|
||||
</button>
|
||||
<div class='form-group'>
|
||||
<div class='login-bottom'>
|
||||
<div>
|
||||
<router-link :to="{name: 'registration'}"
|
||||
v-if='registrationOpen'
|
||||
class='register'>{{$t('login.register')}}
|
||||
</router-link>
|
||||
</div>
|
||||
<button :disabled="loggingIn" type='submit' class='btn btn-default'>
|
||||
{{$t('login.login')}}
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
@ -1,32 +1,26 @@
|
||||
<template>
|
||||
<div>
|
||||
<div class="panel-heading">
|
||||
{{$t('login.two_factor_authentication')}}
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<form class='login-form' @submit.prevent='submit'>
|
||||
<div class='form-group'>
|
||||
<label for='code'>
|
||||
{{$t('login.authentication_code')}}
|
||||
</label>
|
||||
<input v-model='code' class='form-control' id='code'>
|
||||
</div>
|
||||
|
||||
<div class="panel-body">
|
||||
<form class='login-form' @submit.prevent='submit'>
|
||||
<div class='form-group'>
|
||||
<label for='code'>
|
||||
{{$t('login.authentication_code')}}
|
||||
</label>
|
||||
<input v-model='code' class='form-control' id='code'>
|
||||
</div>
|
||||
|
||||
<div class='form-group'>
|
||||
<div class='login-bottom'>
|
||||
<div>
|
||||
<a href="#" @click.prevent="gotoRecoveryCodes">
|
||||
{{$t('login.enter_recovery_code')}}
|
||||
</a>
|
||||
</div>
|
||||
<button type='submit' class='btn btn-default'>
|
||||
{{$t('login.verify')}}
|
||||
</button>
|
||||
<div class='form-group'>
|
||||
<div class='login-bottom'>
|
||||
<div>
|
||||
<a href="#" @click.prevent="gotoRecoveryCodes">
|
||||
{{$t('login.enter_recovery_code')}}
|
||||
</a>
|
||||
</div>
|
||||
<button type='submit' class='btn btn-default'>
|
||||
{{$t('login.verify')}}
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</template>
|
||||
<script src="./totp_form.js"></script>
|
||||
|
@ -53,12 +53,16 @@
|
||||
"username": "Username",
|
||||
"hint": "Log in to join the discussion",
|
||||
"verify": "Verify",
|
||||
"two_factor_authentication": "Two-factor authentication",
|
||||
"authentication_code": "Authentication code",
|
||||
"enter_recovery_code": "Enter a recovery code",
|
||||
"two_factor_recovery": "Two-factor recovery",
|
||||
"enter_two_factor_code": "Enter a two-factor code",
|
||||
"recovery_code": "Recovery code"
|
||||
"recovery_code": "Recovery code",
|
||||
"heading" : {
|
||||
"PasswordForm" : "Log in",
|
||||
"TokenForm" : "Log in",
|
||||
"TotpForm" : "Two-factor authentication",
|
||||
"RecoveryForm" : "Two-factor recovery"
|
||||
}
|
||||
},
|
||||
"media_modal": {
|
||||
"previous": "Previous",
|
||||
|
@ -22,9 +22,16 @@
|
||||
"register": "Зарегистрироваться",
|
||||
"username": "Имя пользователя",
|
||||
"verify": "Проверить",
|
||||
"2factor_authentication": "Двухфакторная аутентификация",
|
||||
"2factor_authentication_code": "Код аутентификации"
|
||||
|
||||
"authentication_code": "Код аутентификации",
|
||||
"enter_recovery_code": "Ввести код восстановления",
|
||||
"enter_two_factor_code": "Ввести код аутентификации",
|
||||
"recovery_code": "Код восстановления",
|
||||
"heading" : {
|
||||
"PasswordForm" : "Log in",
|
||||
"TokenForm" : "Log in",
|
||||
"TotpForm" : "Двухфакторная аутентификация",
|
||||
"RecoveryForm" : "Two-factor recovery"
|
||||
}
|
||||
},
|
||||
"nav": {
|
||||
"back": "Назад",
|
||||
|
Loading…
Reference in New Issue
Block a user