the.bay.news

LocalizedStringResource's bundle

Swift Forums
LocalizedStringResource's bundle
When I call this in my package: print(#bundle) // package bundle it correctly returns the package' bundle. However when I call this from my package: let x: LocalizedStringResource = "Hello" print(x.bundle) // main app bundle it returns the main app bundle, which makes the subsequent: String(localized: x) fail on a missing key. Is this a bug or a feature?

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.