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:
@@ -16,7 +16,7 @@ const assert = require('assert'),
|
||||
cron = require('./cron.js'),
|
||||
moment = require('moment-timezone'),
|
||||
settings = require('./settings.js'),
|
||||
translation = require('./translation.js');
|
||||
translations = require('./translations.js');
|
||||
|
||||
async function getStatus() {
|
||||
return {
|
||||
@@ -46,7 +46,7 @@ async function getLanguage() {
|
||||
async function setLanguage(language) {
|
||||
assert.strictEqual(typeof language, 'string');
|
||||
|
||||
const languages = await translation.listLanguages();
|
||||
const languages = await translations.listLanguages();
|
||||
if (languages.indexOf(language) === -1) throw new BoxError(BoxError.BAD_FIELD, 'Language not found');
|
||||
|
||||
await settings.set(settings.LANGUAGE_KEY, language);
|
||||
|
||||
Reference in New Issue
Block a user