Reputation: 1462
I want to retrieve a Locazable.strings taken from an *.ipa file. However when I do, I get some wierd char mix with it
How can I read it?
Upvotes: 14
Views: 3382
Reputation: 316
It's in property list format.
Two methods to fix this:
change .strings
file to .plist
find a text editor that can use auto recognition correctly.
try testMate
app on mac.
after:
Upvotes: 5
Reputation: 607
Swift 3
let path = Bundle.main.path(forResource: "Localizable", ofType: "strings", inDirectory: nil, forLocalization: "en")
let dic = NSDictionary(contentsOfFile: path!)
debugPrint(dic)
pull your localizable.strings file in a Xcode project and run above code, and then, you can get the dic in your Xcode console or you can store it in a text.
Upvotes: 2
Reputation: 1462
My friend find out how :
plutil -convert json Localizable.strings
Upvotes: 22