How do I change the language through developer tools?

  • 0
    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

  • 2 Answers
  • 0
    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"

  • 0
    Depends on how the language changes on this site)


    function changeLanguage(languageCode) {
    document.cookie = document.cookie.replace(/(lang=)\S{2}/, "$1" + languageCode);

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!