.NET MAUI WebView language

Viewed 40

I have developed an app that acts as a window to see a list of web pages my company needs to be able to access.

I did so by using WebView elements. However, when you load any page through the app, the default language for the integrated browser in the app is English, and I would like them to load in Spanish.

Is there any way to set the browser language the WebView element uses?

This is the code I am using:

<WebView>
Source = "http://host/mypage.html"
</WebView>

The HTML file has this content:

<html lang="es">
<iframe source="www.microsoft.com"></iframe>
</html>

I want to load the specified website in Spanish. The system language is already Spanish and if browsing the HTML file from the system browser (tested Edge and Chrome), it displays it in Spanish.

Thanks in advance

0 Answers
Related