Skip to content

Commit

Permalink
Update strat1.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Barbedouce7 authored Jun 4, 2024
1 parent 2cfa875 commit df05088
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions strat1.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,19 @@ <h2>Step 2 :
</div>
</body>
<script src="https://unpkg.com/[email protected]/dist/translater.js" type="text/javascript"></script>
<script>
document.addEventListener('DOMContentLoaded', () => {
const langSelect = document.getElementById('langSelect');

langSelect.addEventListener('change', (event) => {
const selectedLang = event.target.value;
tran.setLang(selectedLang);
});
});


var tran = new Translater({
lang:"en"
});
</script>
</html>

0 comments on commit df05088

Please sign in to comment.