Skip to content

Commit

Permalink
Merge pull request #1 from Brianggalvez/feat-ios-localization
Browse files Browse the repository at this point in the history
WIP: specify stringsBundle in config (help wanted)
  • Loading branch information
hansemannn authored Feb 15, 2023
2 parents bde1479 + da8001f commit bf906ca
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 bf906ca

Please sign in to comment.