mirror of
https://github.com/SvenTiigi/WhatsNewKit.git
synced 2026-04-02 23:58:58 -06:00
Make WhatsNew.Text localizable #1
Labels
No labels
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
question
question
question
question
question
question
question
question
question
question
question
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github/WhatsNewKit#1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @henrik-dmg on 9/7/2025
Context
When integrating
WhatsNewKitinto my app, I noticedWhatsNew.Textonly supportsStringor(NS)AttributedString, which causes Xcode to not pick up strings you provide to it for the automatic translation catalogs.This PR adds a simple new init that accepts a
LocalizedStringResourcethat is then passed toAttributedString.Changes
.to the end of all summary comments inWhatsNew.Text, as recommended/enforced byswift-format'sBeginDocumentationCommentWithOneLineSummaryruleMy Two-Cents
If you are open to releasing a new major version (aka introducing breaking API-changes), you could bump the iOS and macOS version requirement to 15 and 12 respectively.
That way you could remove the entire
WhatsNew.Textstruct and simply useAttributedStringdirectly/everywhere.If you like, I can open another PR for that, for this I wanted to keep the changes minimal.
Let me know what you think :)