MUH Mobile Inc.
MUH Mobile Inc.

Reputation: 1462

Reading a Localization.strings file from a *.ipa

I want to retrieve a Locazable.strings taken from an *.ipa file. However when I do, I get some wierd char mix with itenter image description here

How can I read it?

Upvotes: 14

Views: 3382

Answers (3)

Huang Huang
Huang Huang

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.

    xcode打开

    after:

    enter image description here

Upvotes: 5

yuanjilee
yuanjilee

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

MUH Mobile Inc.
MUH Mobile Inc.

Reputation: 1462

My friend find out how :

plutil -convert json Localizable.strings

Upvotes: 22

Related Questions