Hi all,
When changing the System->General->Language values,
the Accept-Language field for HTTP requests on iOS8 shows values such as
"es-xl for Spanish(Mexico)
"en-us" for English, US.
Getting the preferred language from [[NSLocale preferredLanguage] objectAtIndex:0] however shows
"es-MX" for Spanish(Mexico)
"en" for English, US,
Is there another API which returns exactly the value set by iOS for Accept-Language header for a given System language setting ?
Or is there a way to construct that header ? I did not find any api returning "es-xl" for language or even "xl" for region.
Thanks,
- Ruchir