Skip to content

Commit

Permalink
hide the language switch link for the current language
Browse files Browse the repository at this point in the history
  • Loading branch information
osma committed Apr 3, 2020
1 parent ff2373c commit fc7fd44
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ai.finto.fi/static/js/global.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
var set_locale_to = function(locale) {

if (locale) {

$.i18n().locale = locale;

}

$('body').i18n();

$('#switch-locale a').show();
$('a[data-locale=' + locale + ']').hide();

};

Expand Down

0 comments on commit fc7fd44

Please sign in to comment.