Half complete i18n

This commit is contained in:
Pieter Fiers 2020-07-20 12:39:43 +02:00
parent 7c1c9bc80a
commit 232664ee14
10 changed files with 100 additions and 24 deletions

View file

@ -8,9 +8,9 @@ import {All} from "./Layouts/All";
import {Layout} from "./Layout";
export class AllKnownLayouts {
public static allSets: any = AllKnownLayouts.AllLayouts();
public static allSets = AllKnownLayouts.AllLayouts();
private static AllLayouts() : any{
private static AllLayouts(): Map<string, Layout> {
const all = new All();
const layouts : Layout[] = [
new Groen(),
@ -22,7 +22,7 @@ export class AllKnownLayouts {
new Statues(),
*/
];
const allSets = {};
const allSets: Map<string, Layout> = new Map();
for (const layout of layouts) {
allSets[layout.name] = layout;
all.layers = all.layers.concat(layout.layers);