From b9033de09dd0bd08a2923507a9f7d702cf6ad0bc Mon Sep 17 00:00:00 2001 From: 1000TurquoisePogs Date: Mon, 30 Mar 2020 13:03:47 -0400 Subject: [PATCH] Fixes unformatted messages when language not specified Signed-off-by: 1000TurquoisePogs --- lib/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util.js b/lib/util.js index 766214a4..9c4d9276 100644 --- a/lib/util.js +++ b/lib/util.js @@ -47,7 +47,7 @@ module.exports.initLoggerMessages = function initLoggerMessages(logLanguage) { var messages; let lang = logLanguage ? logLanguage : 'en'; try { // Attempt to get a log message for a language a user may have specified - var logFile = require(`./assets/i18n/log/messages_${logLanguage}.json`); + var logFile = require(`./assets/i18n/log/messages_${lang}.json`); messages = logFile; if (lang != 'en') {