Swift Quick Tips

Get Device Language and Region Code

Posted by Sasha Prokhorenko on May 24, 2017

From time to time I need to send Language ISO (or something like this) to a server as a parameter. Here is a little function which can handle this:

Photo by: Sticker Mule, Colorado Springs, United States. Source: https://unsplash.com