title: '$translate.uses(key)' undefined is not a function in AngularJS
body: <p>I am trying to implement angular-translate in my application.
  So, I found the following <a href="http://jsfiddle.net/X2fsw/2/" rel="nofollow">JSFiddle</a> which should demonstrate angular-translate, but I get the following error message:</p>
  
  <blockquote>
    <p>'undefined' is not a function (evaluating '$translate.uses(key)')</p>
  </blockquote>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var myApp = angular.module('myApp', ['pascalprecht.translate']);
  
  myApp.config(function($translateProvider) {
    $translateProvider.preferredLanguage('fr');
    $translateProvider.translations('en', {
      MONDAY: 'Monday',
      TUESDAY: 'Tuesday',
      WEDNESDAY: 'Wednesday',
      THURSDAY: 'Thursday',
      FRIDAY: 'Friday',
      SATURDAY: 'Saturday',
      SUNDAY: 'Sunday'
    });
    $translateProvider.translations('fr', {
      MONDAY: 'Lundi',
      TUESDAY: 'Mardi',
      WEDNESDAY: 'Mercredi',
      THURSDAY: 'Jeudi',
      FRIDAY: 'Vendredi',
      SATURDAY: 'Samedi',
      SUNDAY: 'Dimanche'
    });
  });
  
  myApp.constant('weekDays', [{
    id: 1,
    key: 'MONDAY'
  }, {
    id: 2,
    key: 'TUESDAY'
  }, {
    id: 3,
    key: 'WEDNESDAY'
  }, {
    id: 4,
    key: 'THURSDAY'
  }, {
    id: 5,
    key: 'FRIDAY'
  }, {
    id: 6,
    key: 'SATURDAY'
  }, {
    id: 7,
    key: 'SUNDAY'
  }]);
  
  myApp.controller('MyCtrl', ['$scope', '$translate', 'weekDays',
    function($scope, $translate, weekDays) {
  
      $scope.changeLanguage = function(key) {
        $translate.uses(key)
      }
      $scope.days = weekDays;
      $scope.name = 'user';
      console.log($scope.days);
    }
  ]);</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.22/angular.min.js"&gt;&lt;/script&gt;
  &lt;script src="http://rawgithub.com/PascalPrecht/bower-angular-translate/master/angular-translate.min.js"&gt;&lt;/script&gt;
  
  &lt;body ng-app="myApp"&gt;
    &lt;div ng-controller="MyCtrl"&gt;
      Hello, {{name}}!
      &lt;div&gt;
        &lt;button ng-click="changeLanguage('fr')"&gt;fr&lt;/button&gt;
        &lt;button ng-click="changeLanguage('en')"&gt;en&lt;/button&gt;
      &lt;/div&gt;
  
      &lt;ul&gt;
        &lt;li ng-repeat="day in days"&gt;
          {{ day.key | translate }}
        &lt;/li&gt;
      &lt;/ul&gt;
  
    &lt;/div&gt;
  &lt;/body&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Any idea why this happens?</p>