Interface LanguageManager
-
- All Known Implementing Classes:
DefaultLanguageManager
public interface LanguageManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Language
getGlobalDefaultLanguage()
Returns the language enabled as the global default.Language
getLanguage(String languageKey)
Retrieves the Language for the given key Null is returned when a plugin with languageKey could not be found, or it was not a LanguageList<Language>
getLanguages()
Returns a list of Language objects, representing the currently loaded languages
-
-
-
Method Detail
-
getLanguage
Language getLanguage(String languageKey)
Retrieves the Language for the given key Null is returned when a plugin with languageKey could not be found, or it was not a Language- Parameters:
languageKey
- The key to retrieve the language for- Returns:
- A Language object
-
getLanguages
List<Language> getLanguages()
Returns a list of Language objects, representing the currently loaded languagesThe en_GB locale is also added to the list
The sorting for this list is undefined.
- Returns:
- A list containing Language objects
-
getGlobalDefaultLanguage
Language getGlobalDefaultLanguage()
Returns the language enabled as the global default.- Returns:
- the global default language
- Since:
- 6.2.0
-
-