Skip to content

dimix/Localizable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A quick & simple String extension to localize your application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages