ColosseumI18nManagerBuilder

A builder class for the i18n manager. This class is used to build the i18n manager with the specified settings. The i18n manager is used to manage the languages for the plugin.

Constructors

Link copied to clipboard
constructor(plugin: ColosseumPlugin)

Functions

Link copied to clipboard

Adds a dynamic language to the manager.

Link copied to clipboard

Adds the specified languages to the static languages.

Link copied to clipboard

Builds the i18n manager with the specified settings. This should be called after all settings are set.

Link copied to clipboard

Forces the language to be used by the plugin. This will override the default language. If the language is not found, the default language will be used.

Link copied to clipboard

Loads the language files from the specified directory in the plugin data folder. If the file does not exist, it will be created and filled with the base language file.

Link copied to clipboard

Loads the language files from the specified directory in the plugin jar.

Link copied to clipboard

Loads the language files from the specified paths in the plugin jar.

Link copied to clipboard

Sets the default locale file for the plugin.

Link copied to clipboard

Sets whether the languages should be converted to lowercase. This is useful for case-insensitive language handling.