Interface Localizable

    • Method Detail

      • getSourceString

        String getSourceString()
        Gets the source (non-localized) string.
        Returns:
        the source string.
      • getLocalizedString

        String getLocalizedString​(Locale locale)
        Gets the localized string.
        Parameters:
        locale - locale into which to get the string.
        Returns:
        the localized string or the source string if no localized version is available.
      • getLocalizedString

        default String getLocalizedString​(String baseName,
                                          String key,
                                          Locale locale)
        Gets the localized string.
        Parameters:
        baseName - base name of the resource bundle
        key - key of the item in the bundle
        locale - locale into which to get the string.
        Returns:
        the localized string or the source string if no localized version is available.