...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
<p translate="my.value.to.translate.hello_x" translate-values="{name: "'John"'}"></p> |
Directive code
Default
...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
$translate('my.value.to.translate.hello_x', {name: "'John"'}).then( (translation) -> scope.yourVariable = translation ) |
...