Add listener to manage locale