mirror of
https://github.com/olivierlacan/keep-a-changelog.git
synced 2025-08-23 10:48:16 +02:00
1 line
273 B
JavaScript
1 line
273 B
JavaScript
document.addEventListener("DOMContentLoaded",function(){document.querySelector(".locales select").addEventListener("change",function(e){origin=window.location.origin,languageCode=e.currentTarget.selectedOptions[0].value,window.location.replace(origin+"/"+languageCode)})}); |