feat(i18n) Custom i18n strings (#4000)

* Custom i18n strings (and some code formatting)

* Documentation for per-instance l10n overwrites
This commit is contained in:
Daniel Krol 2020-05-19 08:21:31 -04:00 committed by GitHub
parent 170f471299
commit 61c7bb9699
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 54 additions and 6 deletions

View file

@ -29,9 +29,9 @@ exports.socketio = function (hook_name, args, cb) {
return console.log(err);
}
//if showSettingsInAdminPage is set to false, then return NOT_ALLOWED in the result
// if showSettingsInAdminPage is set to false, then return NOT_ALLOWED in the result
if(settings.showSettingsInAdminPage === false) {
socket.emit("settings", {results:'NOT_ALLOWED'});
socket.emit("settings", {results: 'NOT_ALLOWED'});
}
else {
socket.emit("settings", {results: data});