1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 16:53:34 +00:00

added missing i18n strings (#1)

This commit is contained in:
Kyle Spearrin
2016-11-19 01:36:09 -05:00
parent 1968dd2d08
commit e7e4a66750
26 changed files with 262 additions and 92 deletions

View File

@@ -12,11 +12,11 @@
$scope.submitPromise = null;
$scope.submit = function (model) {
if (!model.email) {
toastr.error('Email address is required.', 'Errors have occurred');
toastr.error(i18nService.emailRequired, i18nService.errorsOccurred);
return;
}
if (model.email.indexOf('@') === -1) {
toastr.error('Invalid email address.', 'Errors have occurred');
toastr.error(i18nService.invalidEmail, i18nService.errorsOccurred);
return;
}
@@ -24,7 +24,7 @@
$scope.submitPromise = hintPromise(request);
$scope.submitPromise.then(function () {
$analytics.eventTrack('Requested Hint');
toastr.success('We\'ve sent you an email with your master password hint.');
toastr.success(i18nService.masterPassSent);
$state.go('login');
});
};