Implementing localization of strings with Ng2-Translate and Ionic 2.
This is using PLATFORM_PIPES to provide translation to all .html files without modifying .ts files.Clone repository
git clone https://github.com/JarmoKukkola/Ionic2-ng2-translate.git
Install Node.Js
Install Ionic2 and Ng2-Translate
npm install -g ionic@beta
npm install ng2-translate --save
Run in browser
ionic serve
Usage (hello is a keyword in www/assets/i18n/*.json file)
<h2>{{"hello"|translate}}</h2>