Module org.snapfx

Interface DockLocalizationProvider

All Known Implementing Classes:
DockResourceBundleLocalizationProvider
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 DockLocalizationProvider
Resolves localized message patterns for SnapFX translation keys.

Implementations should return null when a key is not available for the requested locale so SnapFX can continue with its fallback chain.

  • Method Summary

    Modifier and Type
    Method
    Description
    resolve(Locale locale, String key)
    Resolves the message pattern for a localization key.
  • Method Details

    • resolve

      String resolve(Locale locale, String key)
      Resolves the message pattern for a localization key.
      Parameters:
      locale - requested locale, never null
      key - translation key, never null
      Returns:
      resolved message pattern, or null when this provider has no value