More translations

This commit is contained in:
Blipz 2026-03-24 12:42:13 +01:00
parent 0b69c1882b
commit 7eeb1f76c3
11 changed files with 407 additions and 236 deletions

View file

@ -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});