Elektrine lite

← Feed

@tjadejong@mastodon.social

Post #545389

2026-02-14 18:14 UTC

@danielsaidi I was reading your article: https://danielsaidi.com/blog/2025/12/02/a-better-way-to-localize-swift-packages-with-xcode-string-catalogs And I've since moved all my Localizable.xcstrings to my SPM packages. However, Xcode is now marking all translations as stale (unless I marked them as manual). Is this to be expected? #swift #swiftlang #iOSDev #localization

Replies (1)

  • @danielsaidi@mastodon.social 2026-02-20 08:40

    @tjadejong@mastodon.social Hi Tim! You need to add the resource information to your Swift package file, so that Xcode handles it properly. Otherwise, the string catalog will not be processed by the package. You must also add the default locale to the package. You can take a look at this package file for reference :) https://github.com/danielsaidi/EmojiKit/blob/main/Package.swift

    Open ##2567673