mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2026-03-30 03:57:23 +02:00
More translations
This commit is contained in:
parent
0b69c1882b
commit
7eeb1f76c3
11 changed files with 407 additions and 236 deletions
|
|
@ -6,7 +6,7 @@ const HTMLPlugin: Plugin = {
|
|||
name: "html-plugin",
|
||||
async onEnd(keys: Map<string, ExtractedKey>) {
|
||||
const content = await readFile("src/index.html", "utf-8");
|
||||
const matches = content.matchAll(/data-(?:text|tip)="([^"]+)"/g);
|
||||
const matches = content.matchAll(/data-(?:html|text|tip)="([^"]+)"/g);
|
||||
for (const match of matches) {
|
||||
const key = match[1];
|
||||
keys.set(key, {key, defaultValue: key});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue