Added Brazillian Portuguese as a language and also Polish

pull/2405/head
Jamie 6 years ago
parent 02adcdadc7
commit 69cb8a17ab

@ -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…
Cancel
Save