TranslationData

public class TranslationData

Represents parsed translation data from a CSV file.

Constructors

Link copied to clipboard
public void TranslationCsvParser.TranslationData(List<String> languages)

Properties

Link copied to clipboard
public final List<String> languages

Functions

Link copied to clipboard
public void addLanguage(String language)
Adds a language if it doesn't exist.
Link copied to clipboard
public Object get(String key, String language)
Gets a translation value for a key and language.
Link copied to clipboard
public Set<String> getKeys()
Gets all translation keys.
Link copied to clipboard
public List<String> getLanguages()
Link copied to clipboard
public List<String> getList(String key, String language)
Gets a list translation, returns null if it's a string or not found.
Link copied to clipboard
public String getString(String key, String language)
Gets a string translation, returns null if it's a list or not found.
Link copied to clipboard
public boolean hasKey(String key)
Checks if a key exists.
Link copied to clipboard
public void set(String key, String language, Object value)
Sets a translation value (String or List).