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 Summary
Modifier and TypeMethodDescriptiongetTranslation(String key, Locale locale, Object... params) voidonApplicationEvent(org.springframework.boot.context.event.ApplicationReadyEvent event) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecutionMethods inherited from interface com.vaadin.flow.i18n.I18NProvider
getAllTranslations, getTranslation, getTranslations
-
Method Details
-
onApplicationEvent
public void onApplicationEvent(org.springframework.boot.context.event.ApplicationReadyEvent event) - Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationReadyEvent>
-
getProvidedLocales
- Specified by:
getProvidedLocalesin interfacecom.vaadin.flow.i18n.I18NProvider
-
getTranslation
- Specified by:
getTranslationin interfacecom.vaadin.flow.i18n.I18NProvider
-