1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-06 09:20:43 +01:00

added new languages

This commit is contained in:
Kyle Spearrin 2018-12-28 10:06:38 -05:00
parent be0e832589
commit df313560c2
2 changed files with 8 additions and 2 deletions

View File

@ -167,6 +167,7 @@ import localeEs from '@angular/common/locales/es';
import localeEt from '@angular/common/locales/et'; import localeEt from '@angular/common/locales/et';
import localeFr from '@angular/common/locales/fr'; import localeFr from '@angular/common/locales/fr';
import localeIt from '@angular/common/locales/it'; import localeIt from '@angular/common/locales/it';
import localeJa from '@angular/common/locales/ja';
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';
@ -175,7 +176,9 @@ import localePtPt from '@angular/common/locales/pt-PT';
import localeRu from '@angular/common/locales/ru'; import localeRu from '@angular/common/locales/ru';
import localeSk from '@angular/common/locales/sk'; import localeSk from '@angular/common/locales/sk';
import localeSv from '@angular/common/locales/sv'; import localeSv from '@angular/common/locales/sv';
import localeUk from '@angular/common/locales/uk';
import localeZhCn from '@angular/common/locales/zh-Hans'; import localeZhCn from '@angular/common/locales/zh-Hans';
import localeZhTw from '@angular/common/locales/zh-Hant';
registerLocaleData(localeCs, 'cs'); registerLocaleData(localeCs, 'cs');
registerLocaleData(localeDa, 'da'); registerLocaleData(localeDa, 'da');
@ -184,6 +187,7 @@ registerLocaleData(localeEs, 'es');
registerLocaleData(localeEt, 'et'); registerLocaleData(localeEt, 'et');
registerLocaleData(localeFr, 'fr'); registerLocaleData(localeFr, 'fr');
registerLocaleData(localeIt, 'it'); registerLocaleData(localeIt, 'it');
registerLocaleData(localeJa, 'ja');
registerLocaleData(localeNb, 'nb'); registerLocaleData(localeNb, 'nb');
registerLocaleData(localeNl, 'nl'); registerLocaleData(localeNl, 'nl');
registerLocaleData(localePl, 'pl'); registerLocaleData(localePl, 'pl');
@ -192,7 +196,9 @@ registerLocaleData(localePtPt, 'pt-PT');
registerLocaleData(localeRu, 'ru'); registerLocaleData(localeRu, 'ru');
registerLocaleData(localeSk, 'sk'); registerLocaleData(localeSk, 'sk');
registerLocaleData(localeSv, 'sv'); registerLocaleData(localeSv, 'sv');
registerLocaleData(localeUk, 'uk');
registerLocaleData(localeZhCn, 'zh-CN'); registerLocaleData(localeZhCn, 'zh-CN');
registerLocaleData(localeZhTw, 'zh-TW');
@NgModule({ @NgModule({
imports: [ imports: [

View File

@ -11,8 +11,8 @@ export class I18nService extends BaseI18nService {
}); });
this.supportedTranslationLocales = [ this.supportedTranslationLocales = [
'en', 'cs', 'da', 'de', 'es', 'et', 'fr', 'it', 'nb', 'nl', 'pl', 'pt-PT', 'pt-BR', 'en', 'cs', 'da', 'de', 'es', 'et', 'fr', 'it', 'ja', 'nb', 'nl', 'pl', 'pt-PT', 'pt-BR',
'ru', 'sk', 'sv', 'zh-CN', 'ru', 'sk', 'sv', 'uk', 'zh-CN', 'zh-TW',
]; ];
} }
} }