Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Commit

Permalink
fix(service): integrate translationCache into service distribution file
Browse files Browse the repository at this point in the history
  • Loading branch information
tspaeth authored and knalli committed Jun 1, 2015
1 parent 995551a commit 2fcbc60
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ module.exports = function (grunt) {
'src/service/storage-key.js',
'src/directive/translate.js',
'src/directive/translate-cloak.js',
'src/filter/translate.js'
'src/filter/translate.js',
'src/service/translationCache.js'
],

ext: {
Expand Down
8 changes: 6 additions & 2 deletions src/service/translationCache.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
angular.module('pascalprecht.translate')

/**
* @ngdoc object
* @name pascalprecht.translate.$translationCache
Expand All @@ -10,10 +12,12 @@
*
* @return {object} $cacheFactory object.
*/
angular.module('pascalprecht.translate')
.factory('$translationCache', $translationCache);
.factory('$translationCache', $translationCache);

function $translationCache($cacheFactory) {

'use strict';

return $cacheFactory('translations');
}

Expand Down

0 comments on commit 2fcbc60

Please sign in to comment.