From e57fc08acf75ddb8c464ff52959dd1fdbbc0ccf6 Mon Sep 17 00:00:00 2001 From: Jonathan Wilkes <jon.w.wilkes@gmail.com> Date: Sun, 13 Nov 2016 15:28:45 -0500 Subject: [PATCH] add spaces in string concatenation expression, use double quotes instead of single quotes --- pd/nw/pdlang.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pd/nw/pdlang.js b/pd/nw/pdlang.js index 45183e655..91cea98b3 100644 --- a/pd/nw/pdlang.js +++ b/pd/nw/pdlang.js @@ -4,10 +4,10 @@ var lang; try { // try the locale given by navigator.language - lang = require('./locales/'+navigator.language+'/translation.json'); + lang = require("./locales/" + navigator.language + "/translation.json"); } catch (e) { - // if that fails then fall back to the default locale 'en' - lang = require('./locales/en/translation.json'); + // if that fails then fall back to the default locale "en" + lang = require("./locales/en/translation.json"); } exports.lang = lang; -- GitLab