Home > Forum > General > Text in main dashboard

Text in main dashboard
0

Hello,
is there any solution to translate TEXT in dashboard?
I have multi language application and i would like to change text depands to user language.

MVP
In reply to: Robert

Could you send me example HTML code with this solution?

for example:

<script>
var langUserValue = window.initModel.userLang;

switch (langUserValue) {
case "pl-PL":
document.getElementById('dashboard').innerHTML = "<span style='font-size: 24px;font-family:Tahoma;'><strong>Jakiś tekst</strong></span>";
break;
case "en-US":
document.getElementById('dashboard').innerHTML = "<span style='font-size: 24px;font-family:Tahoma;'><strong>Sonme text</strong></span>";
break;
}
</script>

<Div id='dashboard'>default value</div>