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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user