I have a problem with internationalization at the click of a button

hi !
i try to change the language for my site at clicking of a button, by using :
bt_english.addClickListener(new Button.ClickListener() {
public void buttonClick(ClickEvent event) {
Locale englais=new Locale(“en”,“EN”);


it work out the button but here it doesn’t work.
thank you.

Not sure how you’re using the Locale in your internationalization but if you receive it using UI.getCurrent().getLocale(); you now have to set it like this: