Skip to content

Commit

Permalink
specify stringsBundle in config
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian García committed Dec 16, 2022
1 parent c8de09d commit da8001f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ios/Classes/TiFreshchatModule.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand All @@ -49,6 +50,10 @@ class TiFreshchatModule: TiModule {
if let domain {
config.domain = domain
}

if let stringsBundle {
config.stringsBundle = stringsBundle
}

Freshchat.sharedInstance().initWith(config)

Expand Down

0 comments on commit da8001f

Please sign in to comment.