From 80d89a086ed3b8791549b322a86cf63606f58d27 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 2 Sep 2016 14:04:37 -0400 Subject: [PATCH] fixed issue where NodeBB was trying to JSON.parse [object Object] re: #4982 --- public/src/modules/translator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/modules/translator.js b/public/src/modules/translator.js index 0ac8f8b004..70eaad8d8e 100644 --- a/public/src/modules/translator.js +++ b/public/src/modules/translator.js @@ -314,7 +314,7 @@ }; if (err && err.code === 'ENOENT') { - data = {}; + data = '{}'; } else if (err) { winston.error('[translator] Error while loading language file: ' + err.message); return callback({});