Best way to localize app?

Hi Robin,

i added the globalization plugin via command line to my ionic app.

Then stared my app with: ionic emulate iOS

and i have a controller with a test function:

.controller(‘SettingsCtrl’, function($scope, $http, $timeout) {

$scope.localeButton = function() {
  navigator.globalization.getLocaleName(
    function (locale) {alert('locale: ' + locale.value + '\n');},
    function () {alert('Error getting locale\n');}
  );
};})

but it doesn’t alert anything… and also is there no log of failure or error…