Skip to content

Commit

Permalink
Merge pull request #15 from davevad93/translate-addon
Browse files Browse the repository at this point in the history
Create languages.js
  • Loading branch information
davevad93 authored Apr 20, 2024
2 parents af89f16 + 299a02e commit c2cb953
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions myproject/myapp/static/js/languages.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
document.addEventListener('DOMContentLoaded', function() {
document.getElementById('language-select').addEventListener('change', function() {
document.getElementById('language-form').submit();
});
});

0 comments on commit c2cb953

Please sign in to comment.