i18n for totp

This commit is contained in:
Kyle Spearrin 2017-07-11 14:13:10 -04:00
parent 21feb653cb
commit 2ae21eef82
4 changed files with 19 additions and 6 deletions

View File

@ -702,5 +702,17 @@
"learnMore": { "learnMore": {
"message": "Learn more", "message": "Learn more",
"description": "Learn more" "description": "Learn more"
},
"authenticatorKeyTotp": {
"message": "Authenticator Key (TOTP)",
"description": "Authenticator Key (TOTP)"
},
"verificationCodeTotp": {
"message": "Verification Code (TOTP)",
"description": "Verification Code (TOTP)"
},
"copyVerificationCode": {
"message": "Copy Verification Code",
"description": "Copy Verification Code"
} }
} }

View File

@ -37,7 +37,7 @@
<i class="fa fa-chevron-right"></i> <i class="fa fa-chevron-right"></i>
</a> </a>
<div class="list-section-item"> <div class="list-section-item">
<label for="totp" class="item-label">Authenticator Key (TOTP)</label> <label for="totp" class="item-label">{{i18n.authenticatorKeyTotp}}</label>
<input id="totp" type="text" name="Totp" ng-model="login.totp"> <input id="totp" type="text" name="Totp" ng-model="login.totp">
</div> </div>
</div> </div>

View File

@ -38,7 +38,7 @@
<i class="fa fa-chevron-right"></i> <i class="fa fa-chevron-right"></i>
</a> </a>
<div class="list-section-item"> <div class="list-section-item">
<label for="totp" class="item-label">Authenticator Key (TOTP)</label> <label for="totp" class="item-label">{{i18n.authenticatorKeyTotp}}</label>
<input id="totp" type="text" name="Totp" ng-model="login.totp"> <input id="totp" type="text" name="Totp" ng-model="login.totp">
</div> </div>
</div> </div>

View File

@ -48,8 +48,9 @@
<span id="password" ng-show="showPassword" class="monospaced">{{login.password}}</span> <span id="password" ng-show="showPassword" class="monospaced">{{login.password}}</span>
</div> </div>
<div class="list-section-item totp" ng-class="{'low': totpLow}" ng-if="login.totp && totpCode"> <div class="list-section-item totp" ng-class="{'low': totpLow}" ng-if="login.totp && totpCode">
<a class="btn-list" href="" title="Copy TOTP" ngclipboard ngclipboard-error="clipboardError(e)" <a class="btn-list" href="" title="{{i18n.copyVerificationCode}}"
ngclipboard-success="clipboardSuccess(e, 'Totp')" data-clipboard-text="{{totpCode}}"> ngclipboard ngclipboard-error="clipboardError(e)"
ngclipboard-success="clipboardSuccess(e, i18n.verificationCodeTotp)" data-clipboard-text="{{totpCode}}">
<i class="fa fa-lg fa-clipboard"></i> <i class="fa fa-lg fa-clipboard"></i>
</a> </a>
<span class="totp-countdown"> <span class="totp-countdown">
@ -62,8 +63,8 @@
</g> </g>
</svg> </svg>
</span> </span>
<span class="item-label">Verification Code (TOTP)</span> <span class="item-label">{{i18n.verificationCodeTotp}}</span>
<span id="totp" class="totp-code" ng-class="{'text-danger': totpLow}">{{totpCodeFormatted}}</span> <span id="totp" class="totp-code">{{totpCodeFormatted}}</span>
</div> </div>
</div> </div>
</div> </div>