Storing the language of the content in Javascrip variable

0
i have a website with webpages rendered in both Arabic and english .i want to capture my webpage's  currently selected language in a javascript variable. how can i  achieve it.
asked
3 answers
0

Hi,

could you tell me what usecase you have, because in mendix we have already language entity, which holds selected language of user.

 

answered
0

Hi Mohammad,

you can create two separate pages one for english and one for arabic,the moment use changes its language you can navigate between these two pages.

Also since it is 2 pages so you will have 2 different url that will solve SEO problem as well.

 

Let me know if you need more help

answered
0

it could be done via microflow url , basically you can create two microflow with different url , and both open same page with different language. read more about microflow url https://docs.mendix.com/refguide/microflow/

answered