Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 703 Bytes

README.md

File metadata and controls

32 lines (21 loc) · 703 Bytes

Ionic2-ng2-translate

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.

Initialization

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>