Skip to content

Commit

Permalink
added russian into the language #4259
Browse files Browse the repository at this point in the history
  • Loading branch information
tidusjar authored Jul 20, 2021
1 parent 309f214 commit a702e22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Ombi/ClientApp/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class AppComponent implements OnInit {
private readonly identity: IdentityService,
@Inject(DOCUMENT) private document: HTMLDocument) {

this.translate.addLangs(["en", "de", "fr", "da", "es", "it", "nl", "sk", "sv", "no", "pl", "pt"]);
this.translate.addLangs(["en", "de", "fr", "da", "es", "it", "nl", "sk", "sv", "no", "pl", "ru", "pt"]);

if (this.authService.loggedIn()) {
this.user = this.authService.claims();
Expand Down Expand Up @@ -78,7 +78,7 @@ export class AppComponent implements OnInit {

// 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|sk|sv|no|pl|pt/) ? browserLang : "en");
this.translate.use(browserLang.match(/en|fr|da|de|es|it|nl|ru|sk|sv|no|pl|pt/) ? browserLang : "en");

}

Expand Down

0 comments on commit a702e22

Please sign in to comment.