Currently, we have support for over-specifying a locale, e.g.:
product_details.get_regions('fr-FR')
will return the same data as get_regions('fr').
But we don't support underspecifying a locale, for example:
product_Details.get_regions('es')
will return English, because that's the fallback.
The accept-languages spec says we can return anything. I'm guessing es-ES would probably be best in that case, but
- I don't actually know it's the best.
- This isn't accept-language, we don't have to adhere exactly.
A motivating example of this is SUMO, which has a single es locale, instead of the various es-* that product_details has.
Currently, we have support for over-specifying a locale, e.g.:
will return the same data as
get_regions('fr').But we don't support underspecifying a locale, for example:
will return English, because that's the fallback.
The accept-languages spec says we can return anything. I'm guessing
es-ESwould probably be best in that case, butA motivating example of this is SUMO, which has a single
eslocale, instead of the variouses-*that product_details has.