mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-03 18:28:13 +01:00
Merge branch 'master' into add-locales-test
This commit is contained in:
commit
8ed5bb9f23
@ -21,7 +21,7 @@ The Bitwarden browser extension is written using the Web Extension API and Angul
|
|||||||
|
|
||||||
**Requirements**
|
**Requirements**
|
||||||
|
|
||||||
- [Node.js](https://nodejs.org) v8.11 or greater
|
- [Node.js](https://nodejs.org) v14.17 or greater
|
||||||
- [Gulp](https://gulpjs.com/) (`npm install --global gulp-cli`)
|
- [Gulp](https://gulpjs.com/) (`npm install --global gulp-cli`)
|
||||||
- Chrome (preferred), Opera, or Firefox browser
|
- Chrome (preferred), Opera, or Firefox browser
|
||||||
|
|
||||||
|
2
jslib
2
jslib
@ -1 +1 @@
|
|||||||
Subproject commit ba1a40af4e93c78b3312a1167e7cc16729910069
|
Subproject commit 306aef73d459dfad8a7a06c32442c9ed2d56922e
|
@ -220,7 +220,8 @@ export default class MainBackground {
|
|||||||
this.eventService);
|
this.eventService);
|
||||||
this.containerService = new ContainerService(this.cryptoService);
|
this.containerService = new ContainerService(this.cryptoService);
|
||||||
this.auditService = new AuditService(this.cryptoFunctionService, this.apiService);
|
this.auditService = new AuditService(this.cryptoFunctionService, this.apiService);
|
||||||
this.exportService = new ExportService(this.folderService, this.cipherService, this.apiService);
|
this.exportService = new ExportService(this.folderService, this.cipherService, this.apiService,
|
||||||
|
this.cryptoService);
|
||||||
this.notificationsService = new NotificationsService(this.userService, this.syncService, this.appIdService,
|
this.notificationsService = new NotificationsService(this.userService, this.syncService, this.appIdService,
|
||||||
this.apiService, this.vaultTimeoutService, () => this.logout(true), this.consoleLogService);
|
this.apiService, this.vaultTimeoutService, () => this.logout(true), this.consoleLogService);
|
||||||
this.environmentService = new EnvironmentService(this.apiService, this.storageService,
|
this.environmentService = new EnvironmentService(this.apiService, this.storageService,
|
||||||
|
@ -238,7 +238,7 @@ export class AppComponent implements OnInit {
|
|||||||
iconHtml: iconClasses != null ? `<i class="swal-custom-icon fa ${iconClasses}"></i>` : undefined,
|
iconHtml: iconClasses != null ? `<i class="swal-custom-icon fa ${iconClasses}"></i>` : undefined,
|
||||||
text: msg.text,
|
text: msg.text,
|
||||||
html: msg.html,
|
html: msg.html,
|
||||||
title: msg.title,
|
titleText: msg.title,
|
||||||
showCancelButton: (cancelText != null),
|
showCancelButton: (cancelText != null),
|
||||||
cancelButtonText: cancelText,
|
cancelButtonText: cancelText,
|
||||||
showConfirmButton: true,
|
showConfirmButton: true,
|
||||||
@ -256,7 +256,7 @@ export class AppComponent implements OnInit {
|
|||||||
const platformUtils = this.platformUtilsService as BrowserPlatformUtilsService;
|
const platformUtils = this.platformUtilsService as BrowserPlatformUtilsService;
|
||||||
const result = await Swal.fire({
|
const result = await Swal.fire({
|
||||||
heightAuto: false,
|
heightAuto: false,
|
||||||
title: msg.title,
|
titleText: msg.title,
|
||||||
input: 'password',
|
input: 'password',
|
||||||
text: msg.body,
|
text: msg.body,
|
||||||
confirmButtonText: this.i18nService.t('ok'),
|
confirmButtonText: this.i18nService.t('ok'),
|
||||||
|
@ -82,12 +82,14 @@ import {
|
|||||||
} from '@angular/common';
|
} from '@angular/common';
|
||||||
import localeBe from '@angular/common/locales/be';
|
import localeBe from '@angular/common/locales/be';
|
||||||
import localeBg from '@angular/common/locales/bg';
|
import localeBg from '@angular/common/locales/bg';
|
||||||
|
import localeBn from '@angular/common/locales/bn';
|
||||||
import localeCa from '@angular/common/locales/ca';
|
import localeCa from '@angular/common/locales/ca';
|
||||||
import localeCs from '@angular/common/locales/cs';
|
import localeCs from '@angular/common/locales/cs';
|
||||||
import localeDa from '@angular/common/locales/da';
|
import localeDa from '@angular/common/locales/da';
|
||||||
import localeDe from '@angular/common/locales/de';
|
import localeDe from '@angular/common/locales/de';
|
||||||
import localeEl from '@angular/common/locales/el';
|
import localeEl from '@angular/common/locales/el';
|
||||||
import localeEnGb from '@angular/common/locales/en-GB';
|
import localeEnGb from '@angular/common/locales/en-GB';
|
||||||
|
import localeEnIn from '@angular/common/locales/en-IN';
|
||||||
import localeEs from '@angular/common/locales/es';
|
import localeEs from '@angular/common/locales/es';
|
||||||
import localeEt from '@angular/common/locales/et';
|
import localeEt from '@angular/common/locales/et';
|
||||||
import localeFa from '@angular/common/locales/fa';
|
import localeFa from '@angular/common/locales/fa';
|
||||||
@ -100,6 +102,8 @@ import localeId from '@angular/common/locales/id';
|
|||||||
import localeIt from '@angular/common/locales/it';
|
import localeIt from '@angular/common/locales/it';
|
||||||
import localeJa from '@angular/common/locales/ja';
|
import localeJa from '@angular/common/locales/ja';
|
||||||
import localeKo from '@angular/common/locales/ko';
|
import localeKo from '@angular/common/locales/ko';
|
||||||
|
import localeLv from '@angular/common/locales/lv';
|
||||||
|
import localeMlIn from '@angular/common/locales/ml-IN';
|
||||||
import localeNb from '@angular/common/locales/nb';
|
import localeNb from '@angular/common/locales/nb';
|
||||||
import localeNl from '@angular/common/locales/nl';
|
import localeNl from '@angular/common/locales/nl';
|
||||||
import localePl from '@angular/common/locales/pl';
|
import localePl from '@angular/common/locales/pl';
|
||||||
@ -119,12 +123,14 @@ import localeZhTw from '@angular/common/locales/zh-Hant';
|
|||||||
|
|
||||||
registerLocaleData(localeBe, 'be');
|
registerLocaleData(localeBe, 'be');
|
||||||
registerLocaleData(localeBg, 'bg');
|
registerLocaleData(localeBg, 'bg');
|
||||||
|
registerLocaleData(localeBn, 'bn');
|
||||||
registerLocaleData(localeCa, 'ca');
|
registerLocaleData(localeCa, 'ca');
|
||||||
registerLocaleData(localeCs, 'cs');
|
registerLocaleData(localeCs, 'cs');
|
||||||
registerLocaleData(localeDa, 'da');
|
registerLocaleData(localeDa, 'da');
|
||||||
registerLocaleData(localeDe, 'de');
|
registerLocaleData(localeDe, 'de');
|
||||||
registerLocaleData(localeEl, 'el');
|
registerLocaleData(localeEl, 'el');
|
||||||
registerLocaleData(localeEnGb, 'en-GB');
|
registerLocaleData(localeEnGb, 'en-GB');
|
||||||
|
registerLocaleData(localeEnIn, 'en-IN');
|
||||||
registerLocaleData(localeEs, 'es');
|
registerLocaleData(localeEs, 'es');
|
||||||
registerLocaleData(localeEt, 'et');
|
registerLocaleData(localeEt, 'et');
|
||||||
registerLocaleData(localeFa, 'fa');
|
registerLocaleData(localeFa, 'fa');
|
||||||
@ -137,6 +143,8 @@ registerLocaleData(localeId, 'id');
|
|||||||
registerLocaleData(localeIt, 'it');
|
registerLocaleData(localeIt, 'it');
|
||||||
registerLocaleData(localeJa, 'ja');
|
registerLocaleData(localeJa, 'ja');
|
||||||
registerLocaleData(localeKo, 'ko');
|
registerLocaleData(localeKo, 'ko');
|
||||||
|
registerLocaleData(localeLv, 'lv');
|
||||||
|
registerLocaleData(localeMlIn, 'ml-IN');
|
||||||
registerLocaleData(localeNb, 'nb');
|
registerLocaleData(localeNb, 'nb');
|
||||||
registerLocaleData(localeNl, 'nl');
|
registerLocaleData(localeNl, 'nl');
|
||||||
registerLocaleData(localePl, 'pl');
|
registerLocaleData(localePl, 'pl');
|
||||||
|
@ -239,7 +239,7 @@ export class SettingsComponent implements OnInit {
|
|||||||
const submitted = Swal.fire({
|
const submitted = Swal.fire({
|
||||||
heightAuto: false,
|
heightAuto: false,
|
||||||
buttonsStyling: false,
|
buttonsStyling: false,
|
||||||
title: this.i18nService.t('awaitDesktop'),
|
titleText: this.i18nService.t('awaitDesktop'),
|
||||||
text: this.i18nService.t('awaitDesktopDesc'),
|
text: this.i18nService.t('awaitDesktopDesc'),
|
||||||
icon: 'info',
|
icon: 'info',
|
||||||
iconHtml: '<i class="swal-custom-icon fa fa-info-circle text-info"></i>',
|
iconHtml: '<i class="swal-custom-icon fa fa-info-circle text-info"></i>',
|
||||||
|
@ -9,8 +9,8 @@ export default class I18nService extends BaseI18nService {
|
|||||||
});
|
});
|
||||||
|
|
||||||
this.supportedTranslationLocales = [
|
this.supportedTranslationLocales = [
|
||||||
'en', 'be', 'bg', 'ca', 'cs', 'da', 'de', 'el', 'en-GB', 'es', 'et', 'fa', 'fi', 'fr', 'he', 'hr', 'hu',
|
'en', 'be', 'bg', 'bn', 'ca', 'cs', 'da', 'de', 'el', 'en-GB', 'en-IN', 'es', 'et', 'fa', 'fi', 'fr', 'he', 'hr', 'hu',
|
||||||
'id', 'it', 'ja', 'ko', 'nb', 'nl', 'pl', 'pt-BR', 'pt-PT', 'ro', 'ru', 'sk', 'sr', 'sv', 'th', 'tr', 'uk',
|
'id', 'it', 'ja', 'ko', 'lv', 'ml-IN', 'nb', 'nl', 'pl', 'pt-BR', 'pt-PT', 'ro', 'ru', 'sk', 'sr', 'sv', 'th', 'tr', 'uk',
|
||||||
'vi', 'zh-CN', 'zh-TW',
|
'vi', 'zh-CN', 'zh-TW',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user