Hello,
I’m developing a multilanguage app on ionic 1, when I change the app language on runtime, the app changes the language correctly, but it moves to another state. what cause this behavious? and how to prevent it?
here is piece of my code:
angular.module(‘starter’).controller(‘SettingsCtrl’,function($scope, $state, $translate) {
$scope.changeCurrentLanguage = function(lang){
localStorage.setItem("preferredLanguage", lang);
$translate.use(lang);
}
});
Thanks