Export Localization don't export Strings

Hi, I thought that with Exporting String with localization in all files but it didn't. It export all SwiftUI Text and Button Strings but thats it.

I had a file where I have.

String(localized: “Hello, world!”, comment: “Hello”)

It is in project and it is passed to the view later.

Tired in Beta 5 and RC

Thanks

Update: I tried Empty project and it worked there. So now is the question what can effect that, i verified that values in Build Settings under Localization are same so don’t know what else can effect that :(

Can you verify that the "Use Compiler to Extract Swift Strings" build setting is enabled on your project? This will build your project before exporting for localization and extract SwiftUI, String(localized:) and AttributedString(localized:) string interpolations.

If that setting is enabled in your project and the string is still not exporting, can you please use Feedback Assistant to file a bug with your project attached? Thanks!

Mention of this build setting should be in the Xcode documentation.

Mention of this build setting should be in the Xcode documentation.

The build setting is documented here. If you’d like to see some other document reference that, I encourage you to file a bug against that document.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Export Localization don't export Strings
 
 
Q