Maps page initial

This commit is contained in:
Kalle
2022-10-05 19:36:25 +03:00
parent 36280db0b1
commit 87bca7aa44
19 changed files with 321 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
import path from "node:path";
import fs from "node:fs";
import type euEn from "./dicts/langs/EUen.json";
const LANG_DICTS_PATH = path.join(__dirname, "dicts", "langs");
@@ -17,9 +18,7 @@ export const LANG_JSONS_TO_CREATE = [
];
export async function loadLangDicts() {
const result: Array<
[langCode: string, translations: Record<string, Record<string, string>>]
> = [];
const result: Array<[langCode: string, translations: typeof euEn]> = [];
const files = await fs.promises.readdir(LANG_DICTS_PATH);
for (const file of files) {