1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-09-23 04:14:33 +00:00

Fix outdated keys in translations

This commit is contained in:
tobspr
2020-10-01 08:49:16 +02:00
parent 4df2ccbfae
commit 74201a0894
31 changed files with 1526 additions and 1005 deletions

View File

@@ -16,7 +16,7 @@ const originalContents = fs
const original = YAML.parse(originalContents);
const placeholderRegexp = /[[<]([a-zA-Z_0-9]+)[\]<]/gi;
const placeholderRegexp = /[[<]([a-zA-Z_0-9/-_]+?)[\]>]/gi;
function match(originalObj, translatedObj, path = "/") {
for (const key in originalObj) {