I have encountered an issue related to the usage of string catalogs in a Swift package. I created a repository for reproduction.
https://github.com/atacan/DiscussionStringCatalogPackage
The Readme.md file has all the details. Here is a short summary:
The Package.swift file's target has resources: [.process("Resources")]
, and this Resources folder contains a string catalog. The catalog is correctly populated by the compiler, and German translations are added. Text
view is using bundle: .module
argument.
However, when the scheme run options are changed to German, the UI still displays English text. Xcode throws a warning indicating that the German translation for the text is not found in the Localizable table of the bundle and it says (not loaded)
. Although the bundle contains translations in the Localizable.strings
file.
Screenshots of the issue are available in the original README file. I am looking for any insights or solutions to this problem.