translation.js -> translations.js
kept confusing my why i can't find this file! this is in line with the rest of our code
This commit is contained in:
@@ -17,7 +17,7 @@ const assert = require('assert'),
|
||||
HttpError = require('connect-lastmile').HttpError,
|
||||
HttpSuccess = require('connect-lastmile').HttpSuccess,
|
||||
safe = require('safetydance'),
|
||||
translation = require('../translation.js');
|
||||
translations = require('../translations.js');
|
||||
|
||||
async function getStatus(req, res, next) {
|
||||
const [error, status] = await safe(cloudron.getStatus());
|
||||
@@ -27,7 +27,7 @@ async function getStatus(req, res, next) {
|
||||
}
|
||||
|
||||
async function listLanguages(req, res, next) {
|
||||
const [error, languages] = await safe(translation.listLanguages());
|
||||
const [error, languages] = await safe(translations.listLanguages());
|
||||
if (error) return next(new BoxError.toHttpError(error));
|
||||
|
||||
next(new HttpSuccess(200, { languages }));
|
||||
|
||||
Reference in New Issue
Block a user