From 2d626fd2dfbd65ac731a1e71e139dc4d488d3ce0 Mon Sep 17 00:00:00 2001 From: alexandercerutti Date: Mon, 13 Aug 2018 11:46:01 +0200 Subject: [PATCH] Added localization in the server --- server.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/server.js b/server.js index e751b2c..98d5d5d 100644 --- a/server.js +++ b/server.js @@ -43,6 +43,24 @@ function manageRequest(request, response) { overrides: overrides }); + pass.localize("it", { + "EVENT": "Evento", + "LOCATION": "Dove" + }); + + pass.localize("en", { + "EVENT": "Event", + "LOCATION": "Location" + }) + + // non-existing language code + pass.localize("ol", { + "EVENT": "numashat", + "LOCATION": "abelret" + }); + + //pass.localize("zu", {}); + pass.generate() .then(function(result) { if (Configuration.output.dir && Configuration.output.shouldWrite && !fs.accessSync(path.resolve(Configuration.output.dir))) {