From 17b1a6324e56b5f3ceded0007e564b0885bb74e8 Mon Sep 17 00:00:00 2001 From: Jamie Date: Fri, 12 Jan 2018 12:33:16 +0000 Subject: [PATCH] Added Norwegian to the translation code, forgot to check this in --- src/Ombi/ClientApp/app/app.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Ombi/ClientApp/app/app.component.ts b/src/Ombi/ClientApp/app/app.component.ts index e8e802649..6b3b61542 100644 --- a/src/Ombi/ClientApp/app/app.component.ts +++ b/src/Ombi/ClientApp/app/app.component.ts @@ -30,13 +30,13 @@ export class AppComponent implements OnInit { private readonly settingsService: SettingsService, private readonly jobService: JobService, public readonly translate: TranslateService) { - this.translate.addLangs(["en", "de", "fr","da","es","it","nl","sv"]); + this.translate.addLangs(["en", "de", "fr","da","es","it","nl","sv","no"]); // this language will be used as a fallback when a translation isn't found in the current language this.translate.setDefaultLang("en"); // See if we can match the supported langs with the current browser lang const browserLang: string = translate.getBrowserLang(); - this.translate.use(browserLang.match(/en|fr|da|de|es|it|nl|sv/) ? browserLang : "en"); + this.translate.use(browserLang.match(/en|fr|da|de|es|it|nl|sv|no/) ? browserLang : "en"); } public ngOnInit() {