Skip to content

Commit

Permalink
(ECAPP-0000)fixed locale tvOS 16
Browse files Browse the repository at this point in the history
  • Loading branch information
radostinaTachova committed Mar 5, 2024
1 parent f7b510a commit a3009a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Source/Foundation/Extensions/LocaleExtensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public extension Locale {

/// Fixed locale without the region
var fixed: Locale {
if #available(iOSApplicationExtension 16, *), #available(macOSApplicationExtension 13, *) {
if #available(iOSApplicationExtension 16, *), #available(macOSApplicationExtension 13, *), #available(tvOSApplicationExtension 16, *) {

Check warning on line 27 in Source/Foundation/Extensions/LocaleExtensions.swift

View check run for this annotation

Codecov / codecov/patch

Source/Foundation/Extensions/LocaleExtensions.swift#L27

Added line #L27 was not covered by tests
Locale(languageCode: language.languageCode,
script: nil,
languageRegion: nil)
Expand Down
4 changes: 2 additions & 2 deletions Tests/Foundation/Extensions/DecimalExtensionsTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,12 @@ class DecimalExtensionsTests: XCTestCase {
locale: .spanishSpain,
unit: Unit(symbol: "$"),
trimZeros: true), "33 $")

XCTAssertEqual((1_345.3 as Decimal).formatted(decimals: 2,
locale: .spanishSpain,
unit: Unit(symbol: ""),
trimZeros: true), "1345,30 €")

XCTAssertEqual((33.564 as Decimal).formatted(decimals: 2,
currencyCode: .euro,
locale: .spanishSpain,
Expand Down

0 comments on commit a3009a5

Please sign in to comment.