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

Commit

Permalink
fix(instant): $translate.instant(id) does not return correct fallback
Browse files Browse the repository at this point in the history
Accidently, `$translate.instant(id)` had returned the last found fallback instead of the first found one.
  • Loading branch information
knalli committed Feb 21, 2014
1 parent 60ffa0d commit eec1d77
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/service/translate.js
Original file line number Diff line number Diff line change
Expand Up @@ -1475,6 +1475,9 @@ angular.module('pascalprecht.translate').provider('$translate', ['$STORAGE_KEY',
result = determineTranslationInstant(translationId, interpolateParams, interpolationId);
}
}
if (typeof result !== 'undefined') {
break;
}
}

if (!result) {
Expand Down

0 comments on commit eec1d77

Please sign in to comment.