From ee7deaf369ccaac3b3d55f4c80f5a6e2c0ca4478 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cihat=20Gu=CC=88ndu=CC=88z?= Date: Wed, 30 Oct 2024 08:13:10 +0100 Subject: [PATCH] Fix localization setup issue in HandySwiftUI --- Package.swift | 1 + Sources/HandySwiftUI/Extensions/TextExt.swift | 2 +- Sources/HandySwiftUI/Localizable.xcstrings | 4146 ++++++++++++++++- .../Types/Views/LimitedTextField.swift | 1 - 4 files changed, 4109 insertions(+), 41 deletions(-) diff --git a/Package.swift b/Package.swift index 1495167..e6e8d4c 100644 --- a/Package.swift +++ b/Package.swift @@ -3,6 +3,7 @@ import PackageDescription let package = Package( name: "HandySwiftUI", + defaultLocalization: "en", platforms: [.iOS(.v16), .macOS(.v13), .tvOS(.v16), .visionOS(.v1), .watchOS(.v9)], products: [.library(name: "HandySwiftUI", targets: ["HandySwiftUI"])], dependencies: [.package(url: "https://github.com/FlineDev/HandySwift.git", from: "4.2.0")], diff --git a/Sources/HandySwiftUI/Extensions/TextExt.swift b/Sources/HandySwiftUI/Extensions/TextExt.swift index 214d99a..01f53cd 100644 --- a/Sources/HandySwiftUI/Extensions/TextExt.swift +++ b/Sources/HandySwiftUI/Extensions/TextExt.swift @@ -72,7 +72,7 @@ extension Text { let suffix = String(formatString[(previousRange?.upperBound ?? formatString.startIndex)..