Skip to content

Commit

Permalink
added german and french translations
Browse files Browse the repository at this point in the history
  • Loading branch information
niels committed Sep 2, 2020
1 parent 1c4d1a3 commit e97eb12
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/localize/languages/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"at": "um",
"before": "vor",
"after": "nach",
"sunrise": "Sonnnnenaufgang",
"sunrise": "Sonnenaufgang",
"sunset": "Sonnenuntergang"
},
"services": {
Expand Down
2 changes: 1 addition & 1 deletion src/localize/languages/nl.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"scheduler": "Scheduler",
"scheduler": "Tijdplanner",
"actions": {
"add": "Nieuw item",
"cancel": "annuleren",
Expand Down
4 changes: 4 additions & 0 deletions src/localize/localize.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import * as en from './languages/en.json';
import * as nl from './languages/nl.json';
import * as de from './languages/de.json';
import * as fr from './languages/fr.json';

var languages: any = {
en: en,
nl: nl,
de: de,
fr: fr,
};

export function localize(string: string, search: string = '', replace: string = '') {
Expand Down

0 comments on commit e97eb12

Please sign in to comment.