angular-translate-storage-cookie.js 529 B

12345678910111213141516171819
  1. /*!
  2. * angular-translate - v2.4.2 - 2014-10-21
  3. * http://github.com/angular-translate/angular-translate
  4. * Copyright (c) 2014 ; Licensed MIT
  5. */
  6. angular.module('pascalprecht.translate').factory('$translateCookieStorage', [
  7. '$cookieStore',
  8. function ($cookieStore) {
  9. var $translateCookieStorage = {
  10. get: function (name) {
  11. return $cookieStore.get(name);
  12. },
  13. set: function (name, value) {
  14. $cookieStore.put(name, value);
  15. }
  16. };
  17. return $translateCookieStorage;
  18. }
  19. ]);