Plato on Github
Report Home
service/handler-log.js
Maintainability
89.18
Lines of code
25
Difficulty
4.07
Estimated Errors
0.05
Function weight
By Complexity
By SLOC
angular.module('pascalprecht.translate') /** * @ngdoc object * @name pascalprecht.translate.$translateMissingTranslationHandlerLog * @requires $log * * @description * Uses angular's `$log` service to give a warning when trying to translate a * translation id which doesn't exist. * * @returns {function} Handler function */ .factory('$translateMissingTranslationHandlerLog', $translateMissingTranslationHandlerLog); function $translateMissingTranslationHandlerLog ($log) { 'use strict'; return function (translationId) { $log.warn('Translation for ' + translationId + ' doesn\'t exist'); }; } $translateMissingTranslationHandlerLog.displayName = '$translateMissingTranslationHandlerLog';