Skip to main content


hey there #Swift folks. At this years #WWDC #Apple had introduced a Translation API, allowing our apps to utilize the built-in translate feature. However I see a major drawback in this API, it can be executed only from the UI. Isn't there any programmatic way to translate the text and get the result as a string? My usecase would be inside an app extension.
in reply to nuno_nuno

they touched on that in the WWDC video. You use the batch translation API and you get back a string.
in reply to Brendan@TapForms

@tapforms As far as I understood it still needs to be initialized from within the SwiftUI view tree. However sometimes I have trouble following the WWDC videos. I guess its time to fire up a playground and just try it out.
in reply to Brendan@TapForms

@tapforms I am blind and they never say what they write so I have to follow the trknscript and the code snippets very carefully and sometimes I just miss a detail.
⇧