public interface TranslationProviderFactory
Modifier and Type | Method and Description |
---|---|
@Nullable TranslationProvider |
createFallbackTranslationProvider()
Creates the
TranslationProvider that will be used as fallback,
in cases where the normally used TranslationProvider is
not available or does not return a message (returns null ). |
@Nullable TranslationProvider |
createTranslationProvider(String language) |
@Nullable TranslationProvider createTranslationProvider(String language)
@Nullable TranslationProvider createFallbackTranslationProvider()
TranslationProvider
that will be used as fallback,
in cases where the normally used TranslationProvider
is
not available or does not return a message (returns null
).
If this fallback provider also returns no message then the message key is returned, as last resort.