Class ControlCenterI18NProvider

java.lang.Object
com.vaadin.controlcenter.starter.i18n.ControlCenterI18NProvider
All Implemented Interfaces:
com.vaadin.flow.i18n.I18NProvider, Serializable, EventListener, org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationReadyEvent>

public class ControlCenterI18NProvider extends Object implements com.vaadin.flow.i18n.I18NProvider, org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationReadyEvent>
An I18N provider that is used to preview translations from Control Center in a Vaadin app. It loads translations from Kubernetes ConfigMaps, which are provided by the Control Center app.
See Also:
  • Method Details

    • onApplicationEvent

      public void onApplicationEvent(org.springframework.boot.context.event.ApplicationReadyEvent event)
      Specified by:
      onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationReadyEvent>
    • getProvidedLocales

      public List<Locale> getProvidedLocales()
      Specified by:
      getProvidedLocales in interface com.vaadin.flow.i18n.I18NProvider
    • getTranslation

      public String getTranslation(String key, Locale locale, Object... params)
      Specified by:
      getTranslation in interface com.vaadin.flow.i18n.I18NProvider