diff --git a/ai.finto.fi/static/js/global.js b/ai.finto.fi/static/js/global.js index 835994124..4588720bd 100644 --- a/ai.finto.fi/static/js/global.js +++ b/ai.finto.fi/static/js/global.js @@ -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(); };