Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 902 Bytes

README.md

File metadata and controls

49 lines (33 loc) · 902 Bytes

Localizable

A quick & simple String extension to localize your application

Features

Fast and simple extention to String to replace NSLocalizedString and similar Apple functions.

How to Use

1. Add String+Localizable.swift on your project

2. Start localizing

Simple localization
"string.to.localize".localized
//  or
"string.to.localize".localized()
Get localization form a table
"string.to.localize".localized("TableName")
Comment localization
"string.to.localize".localized(comment: "This is the comment")
Pass arguments
"string.to.localize %@".localized(arguments: [12]) // Print: "string.to.localize 12"
Pass default value
"string.to.localize %@".localized(value: "No localization found")

Requirements

Current version is compatible with:

  • Swift 3.0+
  • iOS 9 or later