keycloak-theme/common/resources/js/i18n.js

6 lines
145 B
JavaScript
Raw Normal View History

2022-11-28 14:06:30 +00:00
const toggle = document.getElementById('language-toggle');
toggle.addEventListener('change', (event) => {
window.location = toggle.value;
});