So i have an angular application (angular 8) that will be used by the UK, Mauritius and South Africa (potentially more as well).
How can I set the dates be based on the locale of the users?
Will I use a custom pipe? Or set it as some sort of provider in the app.module?
Thanks.
Normally I make use of moment library, and would create a pipe to format the date in the desired language, e.g.
So e.g.
{{item.date | customdate : 'en-us'}} = March
{{item.date | customdate : 'de'}} = März
{{item.date | customdate : 'es'}} = Marzo