Rerender html


#1

Hi!

I use the n2-translate and I want that when I change the language that the application refresh so that the text is in english.

But I can’t find a way how to do that.

Martijn


#2

You find a way? I have a similar problem too.


#3

this is the goal of ng2-translate? isn’t it?

// this language will be used as a fallback when a translation isn't found in the current language
translate.setDefaultLang('en');

// the lang to use, if the lang isn't available, it will use the current loader to get them
translate.use(userLang);

Simply read ng2-translate documentation. I feel like a lot of people here don’t even try before asking. I’ll stop here…

Here’s the documentation link: https://github.com/ocombe/ng2-translate