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:
| Country | Supported Locales |
|---|---|
| Austria | de-AU(default) |
| Canada | en-CA (default), fr-CA |
| Croatia | hr-HR(default) |
| France | fr-FR(default) |
| German | de-DE(default) |
| Italy | it-IT(default) |
| Slovenia | sl-SI(default) |
| Spain | es-ES(default) |
| United States | en-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