Created
March 23, 2018 18:00
-
-
Save fethica/2a25fa5ae317a7d22379bbd00c09f886 to your computer and use it in GitHub Desktop.
Get the language name for code based on the user's device current language
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
let language = Locale.current.localizedString(forLanguageCode: "ar") | |
print(language) // Arabic (if the user's device language is English) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment