Plato on Github
Report Home
service/translationCache.js
Maintainability
87.59
Lines of code
24
Difficulty
3.50
Estimated Errors
0.03
Function weight
By Complexity
By SLOC
angular.module('pascalprecht.translate') /** * @ngdoc object * @name pascalprecht.translate.$translationCache * @requires $cacheFactory * * @description * The first time a translation table is used, it is loaded in the translation cache for quick retrieval. You * can load translation tables directly into the cache by consuming the * `$translationCache` service directly. * * @return {object} $cacheFactory object. */ .factory('$translationCache', $translationCache); function $translationCache($cacheFactory) { 'use strict'; return $cacheFactory('translations'); } $translationCache.displayName = '$translationCache';