Interface FormTranslationProvider

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface FormTranslationProvider
A provider for translating form-related keys (field labels, button text, enum values, etc.). Returns null if no translation is available, which triggers the default fallback behavior.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the translation for the given key and locale.
  • Method Details

    • getTranslation

      String getTranslation(String key, Locale locale)
      Returns the translation for the given key and locale.
      Parameters:
      key - the translation key
      locale - the locale to translate to
      Returns:
      the translated string, or null if no translation is available