Skip to content

Instantly share code, notes, and snippets.

@bodrovis
Created November 26, 2019 16:46
Show Gist options
  • Save bodrovis/88b0c01eaf518917db80925b8db8cafb to your computer and use it in GitHub Desktop.
Save bodrovis/88b0c01eaf518917db80925b8db8cafb to your computer and use it in GitHub Desktop.
$('.lang-switch').click(function(e) {
e.preventDefault();
$.i18n().locale = $(this).data('locale');
update_texts();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment