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

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -