Dynamically change locale for DatePipe in Angular 2

Discussão em 'Angular' iniciado por Martijn van den Bergh, Novembro 11, 2024.

  1. I'm making an Angular project where the user has the ability to switch languages. Is it possible to make the locale dynamic?

    I have seen that you can add it in the NgModule, but I'm guessing it's not dynamic when I put it there? Or can I change it somehow through a service or something?

    Continue reading...

Compartilhe esta Página