// swift-tools-version: 6.3 import PackageDescription let package = Package( name: "Localization", defaultLocalization: "en", platforms: [ .macOS(.v15), .iOS(.v18), .tvOS(.v18), ], products: [ .library( name: "Localization", targets: [ "Localization" ] ) ], targets: [ .target( name: "Localization", path: "Sources", ), .testTarget( name: "LocalizationTests", dependencies: [ .byName(name: "Localization") ], path: "Tests", resources: [ // Copied verbatim rather than processed: the String Catalog is read as raw JSON at runtime so it // resolves identically on Darwin and Linux (which cannot compile it). .copy("Catalogs/Localizable.xcstrings") ] ), ] )