I'm creating a new app, following String catalogs,
But, after start creating separate packages per feature, I found that I have to start typing
String(localized: "Test", bundle: .module)
To not loose the functionality of auto sync with the catalog, and work with the module.
Would be really great if as it is on a separated module, work automatically within the file in the module.
Do someone knows if I'm missing something ?
Thanks
Hello and thanks for your feedback!
You are correct that String lookups from frameworks and packages need to explicitly pass the bundle. Otherwise, Foundation will default to looking up the string in Bundle.main
, which is the top-level app or process.
That said, we are always looking for ways to improve our localization APIs and tools and would welcome feedback in this area via Feedback Reporter.