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

Commit

Permalink
fix(translateService): uses should only load if a loader is registered
Browse files Browse the repository at this point in the history
  • Loading branch information
0x-r4bbit committed Aug 7, 2013
1 parent 6aa3747 commit 604daec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/translate.js
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ angular.module('pascalprecht.translate').provider('$translate', ['$STORAGE_KEY',

// if there isn't a translation table for the language we've requested,
// we load it asynchronously
if (!$translationTable[key]) {
if (!$translationTable[key] && $loaderFactory) {
loadAsync(key).then(useLanguage, function (key) {
$rootScope.$broadcast('$translateChangeError');
deferred.reject(key);
Expand Down

0 comments on commit 604daec

Please sign in to comment.