Make emails translatable

This commit is contained in:
Johannes Zellner
2020-11-19 23:38:59 +01:00
parent fbe5f42536
commit fb4ba5855b
7 changed files with 192 additions and 45 deletions

View File

@@ -37,6 +37,7 @@ let assert = require('assert'),
system = require('../system.js'),
tokendb = require('../tokendb.js'),
tokens = require('../tokens.js'),
translation = require('../translation.js'),
updater = require('../updater.js'),
users = require('../users.js'),
updateChecker = require('../updatechecker.js');
@@ -316,7 +317,7 @@ function getServerIp(req, res, next) {
}
function getLanguages(req, res, next) {
cloudron.getLanguages(function (error, languages) {
translation.getLanguages(function (error, languages) {
if (error) return next(new BoxError.toHttpError(error));
next(new HttpSuccess(200, { languages }));