v4.1.3
Features
- Angular version: ^5.0.0
- Improve internal documentation
Bug fixes
- Add input params to avoid loops in nested translation (#155)
There aren't breaking changes, but the new suggested way to use params with directives is:
Before
<p [l10nTranslate]="{ user: username, NoMessages: messages.length }">User notifications</p>
After
<p [params]="{ user: username, NoMessages: messages.length }" l10nTranslate>User notifications</p>
That to avoid that situations of this kind generate a loop:
<div l10nTranslate>
<div [params]="{number:'Two'}" l10nTranslate>2</div>
<div>1</div>
</div>