MMLocalization
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
Step
1.Import your table.string file
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
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.