mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-16 02:02:55 -07:00
Added Norwegian to the translation code, forgot to check this in
This commit is contained in:
parent
1ff0c6e4d1
commit
17b1a6324e
1 changed files with 2 additions and 2 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue