I18NManager

Manager for I18N instances.

This singleton object manages I18N instances for different plugins, ensuring that each plugin has at most one I18N instance associated with it.

Functions

Link copied to clipboard
fun create(plugin: Plugin, dir: File): I18N

Creates or retrieves an I18N instance for the specified plugin.

Link copied to clipboard
fun get(plugin: Plugin, dir: File = plugin.dataFolder.resolve("i18n")): I18N

Gets the I18N instance for the specified plugin.

Link copied to clipboard
fun reload(plugin: Plugin)

Reloads the locales for the I18N instance associated with the specified plugin.

Link copied to clipboard
fun remove(plugin: Plugin)

Removes the I18N instance associated with the specified plugin.