Latest 1.0.2
Homepage https://github.com/Meniny/Localization
License MIT
Platforms ios 8.0, osx 10.10, tvos 9.0, watchos 2.0
Frameworks Foundation
Authors



VersionAuthorBuild PassingSwift
PlatformsMIT
CocoapodsCarthageSPM

What’s this?

Localization is a Localization Manager written in Swift.

Requirements

  • iOS 8.0+
  • macOS 10.10+
  • watchOS 2.0+
  • tvOS 9.0+
  • Xcode 8 with Swift 3

Installation

CocoaPods

use_frameworks!
pod 'Localization'

Contribution

You are welcome to fork and submit pull requests.

License

Localization is open-sourced software, licensed under the MIT license.

Usage

import Localization

class SomeSettingsClass {
  func changeLanguage() {
      Localization.preferredLanguage = LocalizableLanguage.french.code // == "fr"
  }
}
import Localization

class SomeViewController: UIViewController {
  var someLabel: UILabel = UILabel()

  override func viewDidLoad() {
    super.viewDidLoad()
    // ...

    Localization.startObserve(with: self, selector: #selector(localizationDidChangeWithPreferredLanguage))
    }

  deinit {
    Localization.stopObserve(with: self)
  }

  func localizationDidChangeWithPreferredLanguage() {
    someLabel.text = "SomeLocalizationKey".localized()
  }
}

Latest podspec

{
    "name": "Localization",
    "version": "1.0.2",
    "summary": "A Localization Manager written in Swift.",
    "homepage": "https://github.com/Meniny/Localization",
    "license": "MIT",
    "authors": {
        "Elias Abel": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Meniny/Localization.git",
        "tag": "1.0.2"
    },
    "platforms": {
        "ios": "8.0",
        "osx": "10.10",
        "tvos": "9.0",
        "watchos": "2.0"
    },
    "source_files": "Localization/*.*",
    "module_name": "Localization",
    "public_header_files": "Localization/*.h",
    "frameworks": "Foundation",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This