WebHotelier supports a method to pre-set the booking engine language in order to be called from multi-lingual websites directly to the native language of the visitor.

Table of Contents
  1. Supported parameters
  2. Usage
  3. Examples of POST requests
  4. Examples of GET requests

Supported parameters

NAME TYPE RANGE / SET REQUIRED DEFAULT EXAMPLE NOTES
lang string
am, am-ET
ar, ar-SA
bg, bg-BG
ca, ca-ES
cs, cs-CZ
da, da-DK
de, de-DE
el, el-GR
en, en-GB
en-US
es, es-ES
fi, fi-FI
fr, fr-FR
he, he-IL
hr, hr-HR
hu, hu-HU
id, id-ID
it, it-IT
ja, ja-JP
ko, ko-KR
ms, ms-MY
nb, nb-NO
nl, nl-NL
pl, pl-PL
pt, pt-PT
ro, ro-RO
ru, ru-RU
sk, sk-SK
sl, sl-SI
sq, sq-AL
sr, sr-Latn-RS
sr-Latn-ME
sv, sv-SE
th, th-TH
tr, tr-TR
uk, uk-UA
zh, zh-CN
zh-TW
YES (property default) lang=es Can be language code (ISO 639-1) or
specific language locale (case-insensitive)


For legacy reasons we also accept locales with _ as the separator, for example el_GR instead of el-GR

Usage

If only language code is specified, the first locale supported for that language will be used (for example: en=en-GB).

The hotelier may choose not to support some of the languages (English is the default and is always available). Please visit the booking engine to find out which languages are supported.

We strongly recommend of using the POST method whenever possible in order to avoid appending query keys on the booking engine URL. If the property's site supports multiple languages, the links or forms leading to the booking engine should set the lang parameter to match the site's language.

The lang parameter can be combined with Availability parameters.

⛔ CAUTION ⛔

Do not forget to replace example.reserve-online.net in the examples below with the real booking engine hostname.

If you don't know the hostname yet, please contact WebHotelier support.

Example of POST request using a standard HTML form

<form action="https://example.reserve-online.net/" method="post">
	<input type="hidden" name="lang" value="de">
	<button type="submit">Launch Booking Engine</button>
</form>

Examples of GET requests

https://example.reserve-online.net/?lang=de
https://example.reserve-online.net/?lang=el-GR&checkin=2008-05-15&checkout=2008-05-17&adults=2