title: AngularJS unknown provider cookieReader
body: <p>I'm trying to use AngularJS translations. The problem I encountered is that I'm getting <code>Unknown provider: $$cookieReaderProvider &lt;- $$cookieReader &lt;- $cookies &lt;- $cookieStore &lt;- $translateCookieStorage &lt;- $translate &lt;- $cookies</code> error when trying to use <code>$translateProvider.useCookieStorage();
  </code></p>
  
  <p>I've injected <code>ngCookies</code> as a dependency in my app:</p>
  
  <pre><code>var nfqApp = angular.module('myApp', ['postServices', 'angularFileUpload', 'ngSanitize', 'ui.date',
      'bootstrapLightbox', 'profileServices', 'ngRoute', 'angularMoment', 'pascalprecht.translate', 'ngCookies']);
  </code></pre>
  
  <p>I've also included following files related to translations and cookies in the following order:</p>
  
  <ul>
  <li>angular-translate.min.js</li>
  <li>angular-cookies.js</li>
  <li>angular-translate-interpolation-messageformat.js    </li>
  <li>angular-translate-storage-cookie.js</li>
  <li>messageformat.js</li>
  <li>en.js</li>
  <li>lt.js</li>
  </ul>
  
  <p>My app config (where I try to use cookieStorage:</p>
  
  <pre><code>myApp.config(['$translateProvider', function ($translateProvider) {
  $translateProvider.translations('lt', {
      "OTHER_LIKES" : "{peopleCount, plural, one {# kolega tai mėgsta} few {# kolegos tai mėgsta} other {# kolegų tai mėgsta}}",
      "YOU_AND_OTHERS_LIKES" : "{peopleCount, plural, one {Tu ir # kolega tai mėgsta} few {Tu ir # kolegos tai mėgsta} other {Tu ir # kolegų tai mėgsta}}",
      "YOU_LIKE" : "Tu mėgsti tai"
  });
  
  $translateProvider.translations('en', {
      "OTHER_LIKES" : "{peopleCount, plural, one {# colleague likes this} few {# colleagues likes this} other {# colleagues likes this}}",
      "YOU_AND_OTHERS_LIKES" : "{peopleCount, plural, one {You and # colleague likes this} few {You and # colleagues likes this} other {You and # colleagues likes this}}",
      "YOU_LIKE" : "You like this"
  });
  
  $translateProvider.preferredLanguage('lt');
  
  $translateProvider.fallbackLanguage('en');
  
  $translateProvider.addInterpolation('$translateMessageFormatInterpolation');
  
  $translateProvider.useCookieStorage();
  }]);
  </code></pre>