TranslationsConfig

public class TranslationsConfig

Manages translations using per-language CSV files. CSV format: "key","en","" with indexed keys for lists. Special modes: - "english": Bypasses CSV entirely, uses plugin defaults - "custom": Uses auto-generated English→English CSV for customization

Constructors

Link copied to clipboard
public void TranslationsConfig()
Initializes the translation system.

Properties

Functions

Link copied to clipboard
public static String add(String filename, String key, String value)
Adds a translatable string and returns the display-ready (color-converted) value.
public static List<String> add(String filename, String key, List<String> value)
Adds a translatable list and returns the display-ready (color-converted) value.
Link copied to clipboard
public static boolean isEnglish()
Checks if the current language is English (plugin defaults mode).
Link copied to clipboard
public static void shutdown()
Shuts down the translation system, saving any pending changes.