Added the Localizable strings catalog to the library target and added some path component and path format keys to this catalog.

This commit is contained in:
Javier Cicchelli 2025-02-27 01:32:07 +01:00
parent cc17bb0e13
commit e2df0dec71
2 changed files with 66 additions and 1 deletions

View File

@ -0,0 +1,61 @@
{
"sourceLanguage" : "en",
"strings" : {
"path.component.forward-slash" : {
"extractionState" : "manual",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "/"
}
}
}
},
"path.component.previous-folder" : {
"extractionState" : "manual",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : ".."
}
}
}
},
"path.format.data" : {
"extractionState" : "manual",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "/data/%@"
}
}
}
},
"path.format.docc-archive" : {
"extractionState" : "manual",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "/%@.doccarchive"
}
}
}
},
"path.format.root" : {
"extractionState" : "manual",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "/%@"
}
}
}
}
},
"version" : "1.0"
}

View File

@ -4,6 +4,7 @@ import PackageDescription
let package = Package(
name: "DocCRepo",
defaultLocalization: "en",
platforms: [
.macOS(.v14)
],
@ -31,7 +32,10 @@ let package = Package(
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "Hummingbird", package: "hummingbird")
],
path: "Library"
path: "Library",
resources: [
.process("Resources/Catalogs/Localizable.xcstrings")
]
),
.testTarget(
name: "AppTests",