Hi Aditya,
For your use case, a common approach is:
For example, when the user selects Chinese, the search request could include:
{
"q": "Artificial Intelligence",
"lr": "lang_zh-CN"
}
A typical response may look like:
{
"items": [
{
"title": "人工智能简介",
"link": "https://example.com/ai",
"snippet": "人工智能是计算机科学的一个分支..."
}
]
}
The title and snippet fields will generally be returned in the requested language when matching content is available. You can import this JSON into Mendix entities and display the results on the page. This approach allows only the search page to behave in the selected language while keeping the rest of the application unchanged.