diff --git a/package.json b/package.json index 28cac72a..ab1d182c 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,8 @@ "build": "tsc && copyfiles static/webui/** build", "lint": "eslint --ext .ts .", "lint:fix": "eslint --fix --ext .ts .", - "prettier": "prettier --write ." + "prettier": "prettier --write .", + "update-translations": "ts-node-dev -r tsconfig-paths/register static/webui/translations/update-translations.ts " }, "license": "GNU", "dependencies": { diff --git a/src/routes/webui.ts b/src/routes/webui.ts index 5ae72040..c94d05ea 100644 --- a/src/routes/webui.ts +++ b/src/routes/webui.ts @@ -15,6 +15,13 @@ webuiRouter.use("/webui", (req, res, next) => { if (req.originalUrl === "/") { return res.redirect("/webui/"); } + if ( + req.originalUrl.includes("translations/update-locales.ts") || + req.originalUrl.includes("translations/old_en.json") + ) { + res.status(404).json({ error: "endpoint was not found" }); + return; + } next(); }); diff --git a/static/webui/index.html b/static/webui/index.html index ec0bee15..0db3f369 100644 --- a/static/webui/index.html +++ b/static/webui/index.html @@ -34,13 +34,13 @@
Login using your OpenWF account credentials.
+- Note: Changes made here will only be reflected in-game when the game re-downloads your - inventory. Visiting the navigation should be the easiest way to trigger that. -
+