Angular2-moment : change TimeAgoPipe language(ionic2 | Typescript)


#1

hi everyone im trying to change displayed language of Timeagopipe"
in me page1.html :

<time>{{myDatet | amTimeAgo}}</time>

prints: 4 days ago

How can i change it into other language , no English ?

thanks :slight_smile:


#2

use moment i18n

http://momentjs.com/docs/#/i18n/


#3

thanks for replay,
i don’t understand, where i should write this command ?
moment.locale(String);


#4