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

Commit

Permalink
fix($translateProvider): fix comparison in one case of negotiateLocale()
Browse files Browse the repository at this point in the history
  • Loading branch information
toogle committed Apr 2, 2014
1 parent a264466 commit c2b94ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/service/translate.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ angular.module('pascalprecht.translate').provider('$translate', ['$STORAGE_KEY',

var parts = preferred.split('_');

if (parts.length > 1 && avail.indexOf(angular.lowercase(parts[0])) > 1) {
if (parts.length > 1 && avail.indexOf(angular.lowercase(parts[0])) > -1) {
return parts[0];
}
};
Expand Down

0 comments on commit c2b94ca

Please sign in to comment.