dashboardjavacloudcoapiotiot-analyticsiot-platformiot-solutionskafkalwm2mmicroservicesmiddlewaremqttnettyplatformsnmpthingsboardvisualizationwebsocketswidgets
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.4 KiB
50 lines
1.4 KiB
/*!
|
|
* angular-translate - v2.18.1 - 2018-05-19
|
|
*
|
|
* Copyright (c) 2018 The angular-translate team, Pascal Precht; Licensed MIT
|
|
*/
|
|
(function (root, factory) {
|
|
if (typeof define === 'function' && define.amd) {
|
|
// AMD. Register as an anonymous module unless amdModuleId is set
|
|
define([], function () {
|
|
return (factory());
|
|
});
|
|
} else if (typeof module === 'object' && module.exports) {
|
|
// Node. Does not work with strict CommonJS, but
|
|
// only CommonJS-like environments that support module.exports,
|
|
// like Node.
|
|
module.exports = factory();
|
|
} else {
|
|
factory();
|
|
}
|
|
}(this, function () {
|
|
|
|
$translateMissingTranslationHandlerLog.$inject = ['$log'];
|
|
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';
|
|
return 'pascalprecht.translate';
|
|
|
|
}));
|
|
|