Skip to content

get_regions('es') doesn't get any Spanish locale #18

@jsocol

Description

@jsocol

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions