I am creating a small application that consists of two parts: one of them is displayed inside the Chrome browser, and the other is a local application programmed in Python.
In Chrome, the user has <select> to select his / her preferred language. This information is stored in Chrome in a cookie.
I would like to know if it is possible to get this language setting (for example, reading a cookie), so when I launch a local application, it will be displayed in the same language that the user already selected with Chrome.
I cannot change the locale of the system (although this probably makes sense). This should remain in English, but if the user selects Chinese as their preferred language via Chrome and then launches a local application, I would like this application to start in Chinese.
I looked at the command line switches for Chrome, but I did not see anything too useful. At best, the parameter is --enable-file-cookies , and then try to open and analyze the cookie ... anyway, but all the information I could find is pretty vague.
Thank you in advance!
Update A further search ( 1 , 2 ) seems to indicate that Chrome stores cookies using SQL lite. I am studying this. Maybe there is hope with this ...
Borrajax
source share