forked from MapComplete/MapComplete
Half complete i18n
This commit is contained in:
parent
7c1c9bc80a
commit
232664ee14
10 changed files with 100 additions and 24 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue