Class TranslationManager

java.lang.Object
me.lucko.luckperms.common.locale.TranslationManager

public class TranslationManager extends Object
  • Field Details

    • DEFAULT_LOCALE

      public static final Locale DEFAULT_LOCALE
      The default locale used by LuckPerms messages
  • Constructor Details

  • Method Details

    • getTranslationsDirectory

      public Path getTranslationsDirectory()
    • getRepositoryTranslationsDirectory

      public Path getRepositoryTranslationsDirectory()
    • getRepositoryStatusFile

      public Path getRepositoryStatusFile()
    • getInstalledLocales

      public Set<Locale> getInstalledLocales()
    • reload

      public void reload()
    • isTranslationFile

      public static boolean isTranslationFile(Path path)
    • loadFromFileSystem

      public void loadFromFileSystem(Path directory, boolean suppressDuplicatesError)
      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

      public static @Nullable Locale parseLocale(@Nullable String locale)
    • localeDisplayName

      public static String localeDisplayName(Locale locale)