Created
          November 21, 2016 13:17 
        
      - 
      
 - 
        
Save amonshiz/1e4a01f650f99e50a39c061d775bad4a to your computer and use it in GitHub Desktop.  
    String extension to simplify localization
  
        
  
    
      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
    
  
  
    
  | extension String { | |
| var localized: String { | |
| get { | |
| return NSLocalizedString(self, comment: "") | |
| } | |
| } | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment