Post

Replies

Boosts

Views

Activity

Are Swift Packages supported by String Catalogs?
Hello, do the String Catalogs (new in Xcode 15) support Swift Packages? I've tried adding a new Localizable.xcstrings (string catalog) file to my package's resources folder. Great! I then see this screen: All good so far. I then try to go and build my Swift Package... and nothing changes. The string catalog is never populated and I'm left with the same screen as above. So, do string catalogs not support packages at this time or am I doing something wrong? I was really hoping String Catalogs would work and save the day since Export Localizations also does not work for Swift packages that don't support macOS. 😔
9
0
6k
Jan ’25
DocC for custom LibraryItems not supported?
My SwiftUI framework makes use of custom LibraryItems. The default library items have generous amounts of documentation next to them: My views are somewhat complex and having similair documentation for them would be quite helpful. I've tried adding DocC style doc around my library item declarations but Xcode doesnt seem to pick it up and I get "No Details" instead: Is this not supported?
0
0
642
Apr ’23
Are Swift Packages supported by String Catalogs?
Hello, do the String Catalogs (new in Xcode 15) support Swift Packages? I've tried adding a new Localizable.xcstrings (string catalog) file to my package's resources folder. Great! I then see this screen: All good so far. I then try to go and build my Swift Package... and nothing changes. The string catalog is never populated and I'm left with the same screen as above. So, do string catalogs not support packages at this time or am I doing something wrong? I was really hoping String Catalogs would work and save the day since Export Localizations also does not work for Swift packages that don't support macOS. 😔
Replies
9
Boosts
0
Views
6k
Activity
Jan ’25
Package localization export is broken
Steps: Create a new clean Swift package in Xcode 14.3 Add a defaultLocalization value to the package manifest Add a platform to the package manifest: platforms: [.iOS(.v16)] Run Product -> Export Localizations and the following error appears: Version 14.3 (14E222b) macOS 13.1 (22C65) Feedback FB12183400
Replies
1
Boosts
0
Views
932
Activity
Sep ’23
Workflow for translators helping with localization (xcloc) files
Much of the WWDC content (understandably so) covers how to use localized strings in code but a piece of the puzzle that's missing for me is the exported and imported .xcloc files. How do translators use and modify an exported xcloc file to provide translations? Is there a popular 3rd party software for this step?
Replies
1
Boosts
0
Views
1k
Activity
May ’23
DocC for custom LibraryItems not supported?
My SwiftUI framework makes use of custom LibraryItems. The default library items have generous amounts of documentation next to them: My views are somewhat complex and having similair documentation for them would be quite helpful. I've tried adding DocC style doc around my library item declarations but Xcode doesnt seem to pick it up and I get "No Details" instead: Is this not supported?
Replies
0
Boosts
0
Views
642
Activity
Apr ’23
Parentheses added around highlighted statement add new lines
Lately I've noticed that adding parentheses around a highlighted statement puts them on new lines above and below the statement. Expected (greeting) Actual ( greeting ) I can't attribute the change in behavior to a specific version but I'm currently on 14.2 (14C18). Is this a preference or is something else going on?
Replies
2
Boosts
0
Views
827
Activity
Feb ’23