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"
    Anonymous

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

    UPD:

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

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