Skip to content

Commit

Permalink
Release 5.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Decybel07 committed Jul 19, 2019
1 parent 630eb31 commit f82003c
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 8 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
# Change Log
---

## [5.5.1](https://github.com/Decybel07/L10n-swift/tree/5.5.1) (2019-07-19)
* Swift 5.0 Support [#19](https://github.com/Decybel07/L10n-swift/issues/19)

## [5.5.0](https://github.com/Decybel07/L10n-swift/tree/5.5.0) (2019-06-20)
* Support for multiple arguments in plural function [#16](https://github.com/Decybel07/L10n-swift/issues/16)

Expand Down
2 changes: 1 addition & 1 deletion Example/Example iOS/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {

var window: UIWindow?

func application(_: UIApplication, didFinishLaunchingWithOptions _: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
func application(_: UIApplication, didFinishLaunchingWithOptions _: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
return true
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ final class ChooseLanguageTableViewController: UITableViewController {
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)

if let row = self.items.index(where: { $0.language == L10n.shared.language }) {
if let row = self.items.firstIndex(where: { $0.language == L10n.shared.language }) {
self.tableView.selectRow(at: IndexPath(row: row, section: 0), animated: true, scrollPosition: .none)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ final class SimpleTranslatorViewController: UIViewController {
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)

self.pickerView.selectRow(self.languages.index(of: self.from.language) ?? 0, inComponent: 0, animated: false)
self.pickerView.selectRow(self.languages.index(of: self.to.language) ?? 0, inComponent: 1, animated: false)
self.pickerView.selectRow(self.languages.firstIndex(of: self.from.language) ?? 0, inComponent: 0, animated: false)
self.pickerView.selectRow(self.languages.firstIndex(of: self.to.language) ?? 0, inComponent: 1, animated: false)
}
}

Expand Down
6 changes: 3 additions & 3 deletions Example/Example.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@
TargetAttributes = {
2D1714861F2E757B00AADEB5 = {
CreatedOnToolsVersion = 8.3.3;
LastSwiftMigration = 0900;
LastSwiftMigration = 1020;
ProvisioningStyle = Automatic;
};
};
Expand Down Expand Up @@ -597,7 +597,7 @@
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
Expand Down Expand Up @@ -651,7 +651,7 @@
PROVISIONING_PROFILE_SPECIFIER = "";
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
};
Expand Down
2 changes: 1 addition & 1 deletion L10n-swift.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Pod::Spec.new do |spec|
spec.name = 'L10n-swift'
spec.module_name = 'L10n_swift'
spec.version = '5.5.0'
spec.version = '5.5.1'
spec.summary = 'Localization of an application with ability to change language "on the fly" and support for plural forms in any language.'

spec.description = <<-DESC
Expand Down

0 comments on commit f82003c

Please sign in to comment.