Skip to content

Commit

Permalink
Merge pull request #186 from 1000TurquoisePogs/bugfix/unformatted-mes…
Browse files Browse the repository at this point in the history
…sages

Fixes unformatted messages when language not specified
  • Loading branch information
1000TurquoisePogs authored Mar 30, 2020
2 parents 25a9f69 + b9033de commit 7c387ca
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 7c387ca

Please sign in to comment.