Interface LocalizationProvider

All Superinterfaces:
PluginProvider
All Known Subinterfaces:
LocalizationProvider

public interface LocalizationProvider extends PluginProvider
Used to represent custom locales that may want to be registered within Morpheus. This could be alternative language codes for languages such as Klingon and Elvish! To see its use, check the crowdin plugin.
Since:
0.15.1
  • Method Details

    • getCustomLocales

      List<CustomLocale> getCustomLocales(User user)
      Get list of custom Locale Codes to be added to Global and User Morpheus Locale settings. This should typically be used for non standard Locale codes in conjunction with custom provided custom_locale.properties files.
      Parameters:
      user - The current user the locales are being requested for.
      Returns:
      List of CustomLocales to be made available in Global and User locale settings
    • getCustomLocales

      List<CustomLocale> getCustomLocales()
      Get list of custom Locale Codes to be added to Global and User Morpheus Locale settings. This should typically be used for non standard Locale codes in conjunction with custom provided custom_locale.properties files.
      Returns:
      List of CustomLocales to be made available in Global and User locale settings