Last active
          September 20, 2024 21:55 
        
      - 
      
- 
        Save apatronl/6c529b42c79e43fe1e828c92851c340b to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 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