Class TranslationManager
java.lang.Object
me.lucko.luckperms.common.locale.TranslationManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LocaleThe default locale used by LuckPerms messages -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisTranslationFile(Path path) voidloadFromFileSystem(Path directory, boolean suppressDuplicatesError) Loads custom translations (in any language) from the plugin configuration folder.static StringlocaleDisplayName(Locale locale) static @Nullable LocaleparseLocale(@Nullable String locale) voidreload()static net.kyori.adventure.text.Componentrender(net.kyori.adventure.text.Component component) static net.kyori.adventure.text.Componentstatic net.kyori.adventure.text.Component
-
Field Details
-
DEFAULT_LOCALE
The default locale used by LuckPerms messages
-
-
Constructor Details
-
TranslationManager
-
-
Method Details
-
getTranslationsDirectory
-
getRepositoryTranslationsDirectory
-
getRepositoryStatusFile
-
getInstalledLocales
-
reload
public void reload() -
isTranslationFile
-
loadFromFileSystem
Loads custom translations (in any language) from the plugin configuration folder. -
render
public static net.kyori.adventure.text.Component render(net.kyori.adventure.text.Component component) -
render
public static net.kyori.adventure.text.Component render(net.kyori.adventure.text.Component component, @Nullable String locale) -
render
public static net.kyori.adventure.text.Component render(net.kyori.adventure.text.Component component, @Nullable Locale locale) -
parseLocale
-
localeDisplayName
-