Created
November 10, 2016 10:48
-
-
Save pilotmoon/ca508e18851c8dbd29025c963a3ef040 to your computer and use it in GitHub Desktop.
Print NSSpellChecker available languages.
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
| #!/usr/bin/swift | |
| import Cocoa | |
| print(NSSpellChecker.shared().availableLanguages); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Output on my installation of 10.12.1:
["en_GB", "en", "en_AU", "en_CA", "en_IN", "en_SG", "fr", "da", "de", "es", "it", "nl", "nb", "pl", "pt_BR", "pt_PT", "fi", "sv", "tr", "ru", "ko"]