Skip to content

Commit

Permalink
updated to swift-tools-version 5.3
Browse files Browse the repository at this point in the history
use internal localization for match type scoring configuration
  • Loading branch information
JanWittler committed Sep 17, 2020
1 parent c31e7c0 commit 220689f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
// swift-tools-version:5.2
// swift-tools-version:5.3
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "TournamentKit",
defaultLocalization: "en",
platforms: [.iOS(.v9), .macOS(.v10_11), .tvOS(.v9), .watchOS(.v2)],
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,5 +225,5 @@ extension MatchTypeScoringConfiguration where Reward: LocalizedDescriptionMatchT
}

private func NSLocalizedString(_ key: String, comment: String) -> String {
return Foundation.NSLocalizedString(key, tableName: "ScoringOptions", comment: comment)
return Foundation.NSLocalizedString(key, tableName: "ScoringOptions", bundle: .module, comment: comment)
}

0 comments on commit 220689f

Please sign in to comment.