diff --git a/ios/Classes/TiFreshchatModule.swift b/ios/Classes/TiFreshchatModule.swift index 3e5323b..e4c8b4e 100644 --- a/ios/Classes/TiFreshchatModule.swift +++ b/ios/Classes/TiFreshchatModule.swift @@ -40,7 +40,8 @@ class TiFreshchatModule: TiModule { let appId = params["appId"] let appKey = params["appKey"] let domain = params["domain"] - + let stringsBundle = params["stringsBundle"] + guard let appId, let appKey else { fatalError("appId or appKey is not set") } @@ -49,6 +50,10 @@ class TiFreshchatModule: TiModule { if let domain { config.domain = domain } + + if let stringsBundle { + config.stringsBundle = stringsBundle + } Freshchat.sharedInstance().initWith(config)