Skip to content

Commit 224f7f2

Browse files
committed
fix(currentLanguage): Add dependency for pascalprecht.translate
1 parent 2fe7ed6 commit 224f7f2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/angular-translate-current-language.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* @ngdoc property
44
* @name pascalprecht.translate.$translate#currentLanguage
55
* @methodOf pascalprecht.translate.$translate
6+
* @requires $translate
67
*
78
* @description
89
* A helper method to retrieve current language when using angular-translate (pascalprecht.translate).
@@ -15,7 +16,9 @@
1516
* @return {string} current language key
1617
*/
1718

18-
angular.module("pascalprecht.translate")
19+
angular.module("pascalprecht.translate.currentLanguage", [
20+
"pascalprecht.translate"
21+
])
1922
.decorator("$translate", $translateDecorator);
2023

2124
$translateDecorator.$inject = [

0 commit comments

Comments
 (0)