Package com.morpheusdata.core.providers
Interface LocalizationProvider
- All Superinterfaces:
PluginProvider
- All Known Subinterfaces:
LocalizationProvider
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 Summary
Modifier and TypeMethodDescriptionGet list of custom Locale Codes to be added to Global and User Morpheus Locale settings.getCustomLocales
(User user) Get list of custom Locale Codes to be added to Global and User Morpheus Locale settings.Methods inherited from interface com.morpheusdata.core.providers.PluginProvider
getCode, getMorpheus, getName, getPlugin, isPlugin
-
Method Details
-
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.- 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
-