Product API
Fulfillment guide
Localization

Localization

Foodin supports the Accept-Language request HTTP header as described in RFC 7231. For example, your requests can specify a list of languages and you can add weights for resolving those languages.

Currently, the following locales are supported:

CountrySupported Locales
Austriade-AU(default)
Canadaen-CA (default), fr-CA
Croatiahr-HR(default)
Francefr-FR(default)
Germande-DE(default)
Italyit-IT(default)
Sloveniasl-SI(default)
Spaines-ES(default)
United Statesen-US (default)

Locale parameter

You can explicitly set a locale parameter when you create an order or a user. The locale parameter accepts one locale specified in IETF Language Tag format. If the Accept-Language header is set and the request includes the locale parameter, the language specified in the locale parameter is used. For example, in all requests, the Accept-Language header is set to en-CA.

When a customer wants to receive communications in French, the request to create a user account for that customer explicitly sets the locale parameter to fr-CA.

Currently, the following methods support the locale parameter:

  • Create a user
  • Create a delivery order
  • Create a pickup order
  • Create a last mile delivery order
  • Create a dispatch last mile delivery order