Skip to content

Instantly share code, notes, and snippets.

@apatronl
Last active September 20, 2024 21:55
Show Gist options
  • Save apatronl/6c529b42c79e43fe1e828c92851c340b to your computer and use it in GitHub Desktop.
Save apatronl/6c529b42c79e43fe1e828c92851c340b to your computer and use it in GitHub Desktop.
func triggerTranslation() {
if translationConfiguration == nil {
translationConfiguration = TranslationSession.Configuration(
source: .init(identifier: "en-US"),
target: .init(identifier: "es-419")
)
return
}
translationConfiguration?.invalidate()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment