How do I change the language through developer tools?
-
Good day. What js script can change the language on the site from the client side through the developer tools console?JavaScript Adalyn Richardson, Jun 5, 2020
-
Thank you all for your attention, I figured it out myself. It turned out through editing cookies. If anyone can use it.
document.cookie = "lang = En"Anonymous -
Depends on how the language changes on this site)
UPD:
function changeLanguage(languageCode) {
document.cookie = document.cookie.replace(/(lang=)\S{2}/, "$1" + languageCode);
}Anonymous
2 Answers
Your Answer
To place the code, please use CodePen or similar tool. Thanks you!