Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

German language #54

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
<ion-select-option value="en-US">English</ion-select-option>
<ion-select-option value="fr-FR">Français</ion-select-option>
<ion-select-option value="es-ES">Español</ion-select-option>
<ion-select-option value="de-DE">German</ion-select-option>
</ion-select>
</ion-item>
</ion-list>
Expand Down
2 changes: 2 additions & 0 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ export class AppComponent implements OnInit {
? (this.language = "fr-FR")
: baseLang.split("-")[0] === "es"
? (this.language = "es-ES")
: baseLang.split("-")[0] === "de"
? (this.language = "de-DE")
: (this.language = "en-US");
}

Expand Down
4 changes: 3 additions & 1 deletion src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ import { PriorityModalComponent } from './priority-modal/priority-modal.componen
import * as enUS from '../assets/i18n/en-US.json';
import * as frFR from '../assets/i18n/fr-FR.json';
import * as esES from '../assets/i18n/es-ES.json';
import * as deDE from '../assets/i18n/de-DE.json';

const langs = {
'en-US': (enUS as any).default || enUS,
'fr-FR': (frFR as any).default || frFR,
'es-ES': (esES as any).default || esES
'es-ES': (esES as any).default || esES,
'de-DE': (deDE as any).default || deDE
};

export class JSONLoader implements TranslateLoader {
Expand Down
Loading