Skip to content

Commit

Permalink
Merge pull request #60 from bretkikehara/feat-i18nAttr-normalize
Browse files Browse the repository at this point in the history
feat(i18nAttr): Normalize the attribute key before it is set
  • Loading branch information
doshprompt committed Sep 9, 2015
2 parents 3a8d4d8 + 00b18f9 commit 6fcf5a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/localization.directives.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ angular.module('ngLocalize')
exp = values[key];
value = locale.getString(exp);
if (lastValues[key] !== value) {
attrs.$set(key, lastValues[key] = value);
attrs.$set(attrs.$normalize(key), lastValues[key] = value);
}
}
});
Expand Down

0 comments on commit 6fcf5a5

Please sign in to comment.