Translate-params not working correct with angular directive
cakeinpanic opened this issue · 1 comments
cakeinpanic commented
translate-params directive only works for strings, not for translation keys
catalog.setStrings("nl", {
somekey: "Some key string for {{name}}"
});
<div translate translate-params-name="Katerina">somekey</div>
I see only Some key string for
without provided param
cakeinpanic commented
Sorry, my mistake, incorrectly passed params
Correct way is
<div translate translate-params-name="'Katerina'">somekey</div>
//// or
$scope.myName = 'Katerina'
<div translate translate-params-name="myName">somekey</div>