Step 1: Grab the files, either by copying the files from the dist
folder or (preferably) through bower or npm:
bower install --save angular-gettext
or
npm install --save angular-gettext
Step 2: Include the angular-gettext source files in your app:
<script src="bower_components/angular-gettext/dist/angular-gettext.min.js"></script>
or
<script src="node_modules/angular-gettext/dist/angular-gettext.min.js"></script>
Step 3: Add a dependency to angular-gettext in your Angular app:
angular.module('myApp', ['gettext']);
You can now start using the translate
directive to mark strings as translatable.