chore: move bandwidth quotes to locale

This commit is contained in:
Ash Monty
2022-09-09 18:44:42 +02:00
parent 90e638ae6b
commit f263e075bd
3 changed files with 30 additions and 11 deletions

View File

@@ -136,6 +136,13 @@ app.engine('handlebars', handlebars({
neq(value1, value2) {
return value1 !== value2;
},
times(n, block) {
let accum = '';
for(let i = 0; i < n; i++) {
accum += block.fn(i);
}
return accum;
},
localeHelper(locale, propString, propVar) {
/*
locale: the json locale object
@@ -173,7 +180,7 @@ app.engine('handlebars', handlebars({
}
return value;
}
},
}
}));
app.set('view engine', 'handlebars');