Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 1
    I was more thinking about some compile time replacement like for the HTMLs. I thought I didn't want to all a Webapi service to get translated texts but rather have a JS file with the translations Commented May 18, 2017 at 20:35
  • That's exactly what I posted. Check the fetch() method, you pass the locale as parameter and will load a .js file with the translation. And will get those translations from there. You can use this translation @Pipe as a pipe in template or like I showed you in my answer. Commented May 18, 2017 at 21:32
  • 1
    @PeterFromCologne I updated my answer. If you need a more detailed example I can give you tomorrow. Commented May 18, 2017 at 21:39
  • I will try this and post a comment to let you know. THANKS Commented May 24, 2017 at 4:41