change language reload page

parent 80c829c3
......@@ -12,6 +12,7 @@ dashboardControllers.controller('TranslateController', function(
ngToast,
vcRecaptchaService
) {
$scope.changeLanguage = function (langKey) {
//Translate update
......@@ -43,5 +44,7 @@ dashboardControllers.controller('TranslateController', function(
// Reload captcha according to language (only once instance per page, so id is always 0)
vcRecaptchaService.useLang(0, langKey.substr(0,2)); //TODO: REVISAR reCaptcha Widget ID not exists
// Reload page
$window.location.reload();
};
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment