I am using this code:
{{today | date:'General.dateFormat | translate'}}
where General.dateFormat is the MM.dd.yyyy format, a JSON file stored in my language. But it prints as 5 22, 2017 AenerPMl.22PMteFor35PMt | trPMn24lPMte 5 22, 2017 AenerPMl.22PMteFor35PMt | trPMn24lPMte
I think there is a problem with multiple pipes. If I replace General.dateFormat | translate General.dateFormat | translate to MM.dd.yyyy , it works as it should. How to transfer format from my json language file using broadcast channel?
source share