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:
Girish Ramakrishnan
2024-07-05 12:45:23 +02:00
parent bf51a60986
commit bcf497b460
8 changed files with 27 additions and 27 deletions

View File

@@ -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);