Skip to content

Commit

Permalink
2.0.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
andresilvagomez committed Apr 12, 2018
1 parent 1c0670e commit 9191b4c
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 11 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,5 @@ script:
- if [ $POD_LINT == "YES" ]; then
pod lib lint;
fi
after_success:
- bash <(curl -s https://codecov.io/bash) -t ce05bbd9-41a7-4d70-96c5-b31cad55e791
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@
All notable changes to this project will be documented in this file.
`Localize` adheres to [Semantic Versioning](http://semver.org/).

## [2.0.0](https://github.com/kekiiwaa/Localize/releases/tag/2.0.0)
Released on 2018-04-12.

#### Added
- Transfer ownership to [andresilvagomez](https://github.com/andresilvagomez/Localize)
- Swift 4.1 Support.
- Faster.
- Localize.currentLanguage.
- Localize.availableLanguages.
- Segment controls localize key using "," and base.
- UIView components tested.
- By [Andres Silva](https://github.com/andresilvagomez) in Pull Request
[#22](https://github.com/Kekiiwaa/Localize/pull/22).

---

## [1.5.2](https://github.com/kekiiwaa/Localize/releases/tag/1.5.2)
Expand Down
10 changes: 5 additions & 5 deletions Localize.podspec
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
Pod::Spec.new do |s|

s.name = "Localize"
s.version = "1.5.2"
s.version = "2.0.0"
s.license = 'MIT'
s.summary = "Localize is a framework writed in swift to localize your projects easier improves i18n, including storyboards and strings."
s.homepage = "https://github.com/Kekiiwaa/Localize"
s.author = { "Kekiiwaa" => "andresilvagomez@gmail.com" }
s.source = { :git => "https://github.com/Kekiiwaa/Localize.git", :tag => "1.5.2" }
s.homepage = "https://github.com/andresilvagomez/Localize"
s.author = { "Andres Silva" => "andresilvagomez@gmail.com" }
s.source = { :git => "https://github.com/andresilvagomez/Localize.git", :tag => "2.0.0" }

s.ios.deployment_target = '8.0'
s.ios.deployment_target = '9.0'
s.source_files = "Source/*.swift"

end
21 changes: 15 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
[![CocoaPods](https://img.shields.io/cocoapods/v/Localize.svg)](https://cocoapods.org/pods/Localize)
[![Build Status](https://travis-ci.org/Kekiiwaa/Localize.svg?branch=master)](https://travis-ci.org/Kekiiwaa/Localize)
[![Language](https://img.shields.io/badge/language-Swift%204.1-orange.svg)](https://swift.org)
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/Kekiiwaa/Localize/master/LICENSE)

Localize is a framework writed in swift to localize your projects easier improves i18n, including storyboards and strings.

Expand All @@ -17,14 +19,15 @@ ___

## Features

- [x] Keep the Localizable.strings file your app already uses
- [x] Storyboard with IBInspectable
- [x] Keep the File.strings files your app already uses
- [x] Support Apple strings and JSON Files
- [x] Change your app language without changing device language
- [x] Localize your Storyboards without extra files or/and ids

## Requirements

- iOS 8.0+
- iOS 9.0+
- Xcode 8.0+
- Swift 3.0+

Expand All @@ -48,7 +51,7 @@ platform :ios, '8.0'
use_frameworks!

target '<Your Target Name>' do
pod 'Localize' , '~> 1.5.2'
pod 'Localize' , '~> 2.0.0'
end
```

Expand Down Expand Up @@ -100,6 +103,8 @@ You don't need import anything in your code, Localize use extensions to localize
```swift

textLabel.text = "hello.world".localize()
// Or
textLabel.text = "hello.world".localized

```

Expand Down Expand Up @@ -167,6 +172,10 @@ print( "hello.world".localize() )

// Hello world!

// Also you can use

print( "hello.world".localized )

```

### Localize strings, replacing text
Expand Down Expand Up @@ -284,7 +293,7 @@ Implementing internal acction to change a language

@IBAction func updateLanguage(_ sender: Any) {
let actionSheet = UIAlertController(title: nil, message: "app.update.language".localize(), preferredStyle: UIAlertControllerStyle.actionSheet)
for language in Localize.availableLanguages() {
for language in Localize.availableLanguages {
let displayName = Localize.displayNameForLanguage(language)
let languageAction = UIAlertAction(title: displayName, style: .default, handler: {
(alert: UIAlertAction!) -> Void in
Expand Down Expand Up @@ -323,9 +332,9 @@ func application(_ application: UIApplication, didFinishLaunchingWithOptions lau
// If you want remove storaged languaje use
localize.resetLanguage()
// The used language
print(localize.language())
print(localize.currentLanguage)
// List of aviable languajes
print(localize.availableLanguages())
print(localize.availableLanguages)

// Or you can use static methods for all
Localize.update(fileName: "lang")
Expand Down

0 comments on commit 9191b4c

Please sign in to comment.