I'm using ng-translate to translate my app. But I'm stuck on translating a string date :
'Le 24 décembre à 13h'
'December 24th at 1pm'
How can I do such a thing ? I also have to translate it in german
You can install momentjs:
npm install moment --save
import * as moment from 'moment';
Next use Moment Multiple Locale Support:
moment().format('LL');
HINT: According to your locale, you have a better format:
moment().format('ll'); // 4 avr. 2018 for french locale <br>
moment().format('LL'); // April 4, 2018 for US English <br>
Hope I help!