Multiple Language Localization?


#1

I’m trying to follow an angularJS tutorial here (http://www.ng-newsletter.com/posts/angular-translate.html), but it’s breaking quite early on in the process with this block of code:

app.config(function ['$translateProvider', ($translateProvider) {
  $translateProvider.translations({
    HEADLINE: 'Hello there, This is my awesome app!',
    INTRO_TEXT: 'And it has i18n support!'
  });
}]);

I can’t seem to debug my app either, there’s no error output or anything, just blank screens everywhere. (using xcode if that helps)


#2

Hey @guyz. First thought is to open Safari and then connect to a running simulator through Safari’s remote debugging tools. Then, you can see console output and stuff.

It seems you are using it correctly in the config, but how are you using it in the markup?