Latest 0.1.1
Homepage https://github.com/mark2b/l10n
License MIT
Platforms ios 8.0
Authors

[![CI Status](http://img.shields.io/travis/Mark Berner/l10n.svg?style=flat)](https://travis-ci.org/Mark Berner/l10n)
Version
License
Platform

l10n String extension provides convenient way for strings localization


"Hello, World !!!".l10n()               // Looks for "Hello, World !!!" key in the Localized.strings 
"Hello, World !!!".l10n(l.vc1)          // Looks for "Hello, World !!!" key in the
                                        // ViewController1.strings (mapped via l10NResources)
"Hello, %@ !!!".l10n(args:"Me")         // Looks for "Hello, %@ !!!" key in the Localized.strings
                                        // and replace '%@' by argument
"Hello, %@ !!!".l10n(l.vc1, args:"Me")

extension l10nResources {
    public static let vc1 = "ViewController1"
    public static let vc2 = "ViewController2"
}
typealias l = l10NResources

Example

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

Requirements

Installation

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

pod "l10n"

Author

Mark Berner, [email protected]

License

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

Latest podspec

{
    "name": "l10n",
    "version": "0.1.1",
    "summary": "String extension provides convenient way for strings localization",
    "homepage": "https://github.com/mark2b/l10n",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Mark Berner": "[email protected]"
    },
    "source": {
        "git": "https://github.com/mark2b/l10n.git",
        "tag": "0.1.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "Classes/**/*",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This