Please note that the language must be enabled on your portal account in order to be able to display that language. To do this please go to your portal account then go to Settings > General > Languages
1 - Using different versions of the embed
The embed code can be set to display a specific language manually. To do this we need to add the following to the <div> of the embed:
This would set the initial language to English. An embed code with this set would look like this:
If you then also wish to have an embed code for French then you change the language code in the language data attribute;
These will need to be placed on different pages as only one embed code will work per page
The function to change the language is as follows:
This will set the language of the embed on the page to English.
In order to change languages, the language code needs to be changed. So in order to change it to Spanish, the following function needs to be used:
A basic example of how this can be used can be seen in the code below:
If the button labeled English is clicked it will change the language of the ordering system on the page to English, and when Dutch is pressed it will change the language to Dutch.
To learn more about Flipdish’s products or how to grow your online business enroll for FREE in the Flipdish Academy here: http://academy.flipdish.com/