class Vaadin8 implements UiFrameworkExtension {

    @Override
    public Locale getLocale() {
        UI ui = UI.getCurrent();
        if (ui != null) {
            Locale locale = ui.getLocale();
            if (locale != null) {
                return locale;
            }
        }
        return Locale.GERMAN;
    }

}