MMLocalization 5.0.9

MMLocalization 5.0.9

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Nov 2019
SPMSupports SPM

Maintained by MM.



  • By
  • Millman

MMLocalization

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

It's help you to change localization string easily

circledemo

Step

1.Import your table.string file

circledemo

Generate your file convenience you can use

https://github.com/MillmanY/Localize-String-Help

2.Setting your string table at didFinishLaunchingWithOptions

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions:     [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
    // Override point for customization after application launch.
    MMLocalization.start()
    let scuess =  MMLocalization.loadSetting()
    if !scuess {
        MMLocalization.set(type: .custom(tableName: "ILocalizable_CH"))
    }
    return true
}

3.Just setting your key on your UI

circledemo

4.If you want to set up your string by program , your can use

 "log_in".localize()       
 "log_in".localize(table:"ILocalizable_ID")

Installation

MMLocalization is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "MMLocalization"

Author

Millman, [email protected]

License

MMLocalization is available under the MIT license. See the LICENSE file for more info.