Project:
View Revisions: Issue #52745 | [ All Revisions ] [ Back to Issue ] | ||
Summary | 0052745: Chrome auto-detects wrong language, always detecting English(also when language changed) | ||
Revision | 2023-06-14 17:48 by cberner | ||
Description | Chrome based browsers use the following mechanism to detect the current language of a website: https://stackoverflow.com/a/3130857 [^] It seems that in the react application we are always setting the main html element to lang="en", which stands for English language. This means, that when changing the profile language to for example French, the language of the page to chrome is still English and not French. This results in the browser suggesting to translate the page from English to the system's language. For example, if I have my system set to Spanish language and I logged in and switched my profile default language to Spanish in pos2, I will get suggested by chrome to translate the webpage from English to Spanish, although it is already in Spanish. |
||
Revision | 2023-06-14 17:44 by cberner | ||
Description | Chrome based browsers use the following mechanism to detect the current language of a website: https://stackoverflow.com/a/3130857 [^] It seems than in the react application we are always setting the main html element to lang="en", which stands for English language. This means, that when changing the profile language to for example French, the language of the page to chrome is still English and not French. This results in the browser suggesting to translate the page from English to the system's language. For example, if I have my system set to Spanish language and I logged in and switched my profile default language to Spanish in pos2, I will get suggested by chrome to translate the webpage from English to Spanish, although it is already in Spanish. |
Copyright © 2000 - 2009 MantisBT Group |