angular2-i18n
Simple i18n service and pipe for angular2
Installation
First you need to install the npm module:
npm install angular2-i18n --save
Usage
Service:
let lang = defaultLang: 'en' lang: "true": en: "True" es: "Verdadero" "false": en: "False" es: "Falso" ; i18n:I18nService = ;i18n; let text:string = i18n;
Pipe:
"true" | i18n