ARTICLE AD BOX
Trying to localize an interpolated string using Strings Catalog. Strings must be represented as LocalizedStringResource here, there's no other option.
// Error: 'LocalizedStringResource' is passed in an Interpolated String with an invalid segment. static var title = LocalizedStringResource( "OpenIntent.Title", defaultValue: "Open \(LocalizedStringResource("AppName", table: "Shared"))", table: "Shared" )Shared.xcstrings:
{ "sourceLanguage" : "en", "strings" : { "AppName" : { "extractionState" : "pasted", "localizations" : { "en" : { "stringUnit" : { "state" : "translated", "value" : "HeartBLE" } } } }, "OpenIntent.Title" : { "extractionState" : "manual", "localizations" : { "en" : { "stringUnit" : { "state" : "translated", "value" : "Open %1$(appName)@ 🚀" } } } } }, "version" : "1.2" }What does 'invalid segment' mean here?
