Swiftpack.co - Package - a6delali/L10n

L10n

Swift library that helps in localizing apps in a simpler way than system localization does.

Practical Usage Example

Import L10 at the top of each Swift file that will contain localized text.

  • Add .localized() following any String object you want translated:
print("Hello World".localized())
  • To get an array of available localizations:
L10n.availableLanguages()
  • To change the current language:
L10n.language = "fr"

Installation

Swift Package Manager:

dependencies: [
    .package(url: "https://github.com/a6delali/L10n")
]

Author

Abdel Ali, a6delalii@gmail.com

License

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

Github

link
Stars: 0

Dependencies

Used By

Total: 0