DigitalClock add-on. Troubles with i18n.

Hello! I’m a junior-developer and i have some troubles with localization in add-on widget, which is called DigitalClock.
So… I need to change dynamically the locale of my application, and it must change the locale of DigitalClock widget component as well.
For example, something like this (not more than example):

package com.example.testproject;

import java.util.Locale;
import com.askvikrant.digitalclock.DigitalClock;
import com.vaadin.server.VaadinRequest;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickListener;
import com.vaadin.ui.ComboBox;
import com.vaadin.ui.UI;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.Button.ClickEvent;

public class TestprojectUI extends UI {

	VerticalLayout main;
	DigitalClock clock;
	ComboBox languageSelector;
	Button okButton;
	Locale ruLocale;
	Locale usLocale;
	protected void init(VaadinRequest request) {
		main = new VerticalLayout();
		clock = new DigitalClock();
		languageSelector = new ComboBox();
		usLocale = new Locale("en", "US");
		ruLocale = new Locale("ru", "RU");
		okButton = new Button("OK");
		okButton.addClickListener(new ClickListener() {
			public void buttonClick(ClickEvent event) {
				clock.setLocale((Locale) languageSelector.getValue());

Of course it doesn’t work. I read the gwt i18n docs and changed the widgets.gwt then I made tag by BootstrapListener. It works… But I need change the locale dinamycally and i haven’t had succes in this.
Help-Help! :slight_smile: What can you recommend?

This also has trouble with resynchronizing client when we set new content.
Something like this:
WARNING: RPC call to ***.DigitalClockServerRpc.getServerTime received for connector 14 but no such connector could be found. Resynchronizing client.
Probably timers on client side continue working and try to invoke server methods every 5 minutes.