From 079fa9a56436d095c26194a1edcdb95bb6fab62e Mon Sep 17 00:00:00 2001 From: Kelly J Andrews Date: Tue, 25 Feb 2020 16:10:16 -0500 Subject: [PATCH] fix config for local and heroku impoementation --- server/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/index.js b/server/index.js index c856d50..788df72 100644 --- a/server/index.js +++ b/server/index.js @@ -97,7 +97,7 @@ setInterval(() => { }); }, 10000); -const translate = new Translate(); +const translate = config ? new Translate(config) : new Translate(); function translateText(params, translateTo = 'en') { const target = translateTo;