ios - Definite article before country name in sentence -


i have ios app want include user's country (as defined region) in text string, e.g. “in portugal …”. country names easy:

        let countrycode = locale.objectforkey(nslocalecountrycode) as! string         let countryname = locale.displaynameforkey(nslocalecountrycode,                                                    value: countrycode)!         let text = "in \(countryname) …" 

however, country names, name should prefixed “the”, example “the netherlands” , “the united states”. information available in nslocale somehow, or there other libraries can this?


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -