Hi all,
First post here. I'm running tech support for a small rental apartment website that will integrate MEWS into it's pages.
So not really up to speed with the whole MEWS system/backend tbh.
Our website is multi language (NL/EN/DE), and will have a button to switch to the MEWS landing page for date searches, booking etc.
What I would like to set up is that every language version of the website will open up the corresponding language version of the MEWS landing page.
So the button on the Dutch website will open the Dutch version of the MEWS page, the English website the English landing page etc.
The MEWS backend has all languages set up, and this all works in the frontend. So that part is fully set up and finalized.
Any tips on how can I set this up in a weblink on a button, so I can ‘direct’ the landing page to a preferred language.
Thanks for all replies,
Rob Wu
Pakasa - Leiden
Holland
MEWS landing page language selection?
Best answer by barb00sa
Hi Rob,
Great to see you're integrating MEWS into your rental apartment website! Based on your description, it sounds like you're almost there. The solution to your query is actually quite straightforward. MEWS allows you to direct users to specific language versions of its landing pages by modifying the **language code** in the URL.
### Steps to Achieve This:
1. **Identify the Base URL**:
The MEWS landing page URL typically includes a language code parameter at the end of the link. For example:
- Dutch: `?lang=nl`
- English: `?lang=en`
- German: `?lang=de`
2. **Set Up Your Buttons**:
On your website, you can simply create buttons or links that append the correct language code based on the language version of your site. For example:
- Dutch website button: `https://yourmewslink.com/?lang=nl`
- English website button: `https://yourmewslink.com/?lang=en`
- German website button: `https://yourmewslink.com/?lang=de`
3. **Implementation**:
If your website is dynamic (e.g., using a CMS or custom code), you can programmatically generate the correct MEWS link by detecting the current language of the page and appending the corresponding language code to the MEWS URL.
### Example:
If your current button for the MEWS landing page looks like this:
```html
<a href="https://yourmewslink.com" class="booking-button">Book Now</a>
```
Update it to include the language parameter:
```html
<a href="https://yourmewslink.com/?lang=nl" class="booking-button">Boek Nu</a>
```
For the English version:
```html
<a href="https://yourmewslink.com/?lang=en" class="booking-button">Book Now</a>
```
### Tip:
examples:
https://app.mews.com/distributor/d2bb7a61-89bb-4962-8e8d-ac5500817248?language=nl-NL
Dutch
https://app.mews.com/distributor/d2bb7a61-89bb-4962-8e8d-ac5500817248?language=fr-FR
France
https://app.mews.com/distributor/d2bb7a61-89bb-4962-8e8d-ac5500817248?language=de-DE Germany
Let me know if you need further clarification or assistance! 😊
Best regards,
Robin
Hotel St Pol Knokke-Zoute
Join the Mews Community!
Welcome Mews customers. Please use the same email address for registration as in your Mews account. By doing so we can help you faster if we might need to check something in your account.
Already have an account? Login
Login to the community
No account yet? Create account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.

