mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-16 02:02:55 -07:00
Added Brazillian Portuguese as a language and also Polish
This commit is contained in:
parent
02adcdadc7
commit
69cb8a17ab
3 changed files with 11 additions and 3 deletions
|
@ -134,6 +134,12 @@
|
||||||
<li [ngClass]="{'active': 'no' === translate.currentLang}">
|
<li [ngClass]="{'active': 'no' === translate.currentLang}">
|
||||||
<a (click)="translate.use('no')" [translate]="'NavigationBar.Language.Norwegian'"></a>
|
<a (click)="translate.use('no')" [translate]="'NavigationBar.Language.Norwegian'"></a>
|
||||||
</li>
|
</li>
|
||||||
|
<li [ngClass]="{'active': 'pt-br' === translate.currentLang}">
|
||||||
|
<a (click)="translate.use('no')" [translate]="'NavigationBar.Language.BrazillianPortuguese'"></a>
|
||||||
|
</li>
|
||||||
|
<li [ngClass]="{'active': 'po' === translate.currentLang}">
|
||||||
|
<a (click)="translate.use('no')" [translate]="'NavigationBar.Language.Polish'"></a>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -40,13 +40,13 @@ export class AppComponent implements OnInit {
|
||||||
__webpack_public_path__ = base + "/dist/";
|
__webpack_public_path__ = base + "/dist/";
|
||||||
}
|
}
|
||||||
|
|
||||||
this.translate.addLangs(["en", "de", "fr","da","es","it","nl","sv","no"]);
|
this.translate.addLangs(["en", "de", "fr","da","es","it","nl","sv","no", "po", "pt-br"]);
|
||||||
// this language will be used as a fallback when a translation isn't found in the current language
|
// this language will be used as a fallback when a translation isn't found in the current language
|
||||||
this.translate.setDefaultLang("en");
|
this.translate.setDefaultLang("en");
|
||||||
|
|
||||||
// See if we can match the supported langs with the current browser lang
|
// See if we can match the supported langs with the current browser lang
|
||||||
const browserLang: string = translate.getBrowserLang();
|
const browserLang: string = translate.getBrowserLang();
|
||||||
this.translate.use(browserLang.match(/en|fr|da|de|es|it|nl|sv|no/) ? browserLang : "en");
|
this.translate.use(browserLang.match(/en|fr|da|de|es|it|nl|sv|no|po|pt-br/) ? browserLang : "en");
|
||||||
}
|
}
|
||||||
|
|
||||||
public ngOnInit() {
|
public ngOnInit() {
|
||||||
|
|
|
@ -65,7 +65,9 @@
|
||||||
"Italian": "Italian",
|
"Italian": "Italian",
|
||||||
"Danish": "Danish",
|
"Danish": "Danish",
|
||||||
"Dutch": "Dutch",
|
"Dutch": "Dutch",
|
||||||
"Norwegian":"Norwegian"
|
"Norwegian":"Norwegian",
|
||||||
|
"BrazillianPortuguese": "Brazillian Portuguese",
|
||||||
|
"Polish":"Polish"
|
||||||
},
|
},
|
||||||
"OpenMobileApp":"Open Mobile App",
|
"OpenMobileApp":"Open Mobile App",
|
||||||
"RecentlyAdded":"Recently Added"
|
"RecentlyAdded":"Recently Added"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue