mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 16:25:21 +00:00
Added localization in the server
This commit is contained in:
18
server.js
18
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))) {
|
||||
|
||||
Reference in New Issue
Block a user