From 730c1d075cb1a91862cfdcefc77698d4045db2c9 Mon Sep 17 00:00:00 2001 From: Konstantin Tarkus Date: Sat, 4 Nov 2017 18:34:58 +0300 Subject: [PATCH] Allow to set options.language_override (#25) --- lib/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/index.js b/lib/index.js index b4c614f..d805764 100644 --- a/lib/index.js +++ b/lib/index.js @@ -200,6 +200,7 @@ Intercom.prototype.bootOrUpdate = function(options, integrationSettings) { var method = this.booted === true ? 'update' : 'boot'; var activator = this.options.activator; options.app_id = this.options.appId; + options.language_override = integrationSettings.language_override; // Intercom, will force the widget to appear if the selector is // #IntercomDefaultWidget so no need to check inbox, just need to check that