https://angular-gettext.rocketeer.be/


1) Html and js messages have to be preceeded with the translate clause.

<h1 translate>Hello!</h1>
<input type="text" placeholder="{{'Username'|translate}}" />

It is possible to add comments ...
<div translate-comment="{{name}} expands to the logged in user name" translate>Hello {{name}}!</div>



Contexts can be added to strings to be translated. The translation for the same string in a different context can be different.
<h1 translate-context="Verb" translate>File</h1>
<h1 translate-context="Noun" translate>File</h1>

2)use grunt to create the translations.js file. A js dictionary

It is not necessary that grunt is included in the deployment
libraries.

3) Add module gettext.

Done
