title: AngularJS : get translate key in app.js
body: <p>In my application, I use the AngularJS module Pascal Precht (translate module). I come to you because I can not get in my method <code>myApp.Run</code> of <code>app.js</code> a translation key. 
  I can do in a controller or a view. But impossible to get it at the initialization of the project. It shows me the key, not correspondence. </p>
  
  <p>Do you have a solution?</p>
  
  <p>Here is my code: </p>
  
  <pre><code>var myApp = angular.module('myApp', ['ngRoute', 'ngAnimate', 'myApp.filters', 'myApp.services', 'myApp.directives', 'pascalprecht.translate']);
  
  // Declare routeProvider
  myApp.config(['$routeProvider', function($routeProvider) {
      $routeProvider.when('/', {templateUrl:'partials/connectView.html', controller:'ConnectController'});
      $routeProvider.when('/homeView', {templateUrl:'partials/homeView.html', controller:'HomeController'});
  }]);
  
  // Declare translateProvider
  myApp.config(['$translateProvider', function($translateProvider) {        
      $translateProvider.useStaticFilesLoader({
          prefix: 'res/localization/lang-',
          suffix: '.json'
      });
  
      $translateProvider.preferredLanguage('fr_FR');
      //$translateProvider.preferredLanguage('en_US');
  }]);
  
  // Declare Global variables
  myApp.run(['$rootScope', '$filter', function($rootScope, $filter) {
      $rootScope.list = false;
      etc....
  
      //I'm trying to get translate Key but it doesn't work
      console.log($filter('translate')('MY_KEY'));
  }]);
  </code></pre>
  
  <p>My AngularJS version is 1.2.16 (last stable version). Thx</p>