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
Post a Comment