Skip to content

Commit

Permalink
Fixes unformatted messages when language not specified
Browse files Browse the repository at this point in the history
Signed-off-by: 1000TurquoisePogs <[email protected]>
  • Loading branch information
1000TurquoisePogs committed Mar 30, 2020
1 parent 25a9f69 commit b9033de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit b9033de

Please sign in to comment.