tomkowz / Swifternalization

Localize iOS apps in a smarter way using JSON files. Swift framework.
MIT License
579 stars 47 forks source link

Allow supporting other preferred languages #28

Open paulrolfe opened 7 years ago

paulrolfe commented 7 years ago

Instead of just using the first supported language, look at all the preferred ones, trying to return one for which the language file exists. And if we have none, just return the first one.

This solves the problem where your project has localized something else in a region specific language, but still want to use the a general language (without region) for the base translations. For Example: