package dev.photosync.mcapi;

/**
 * Looks up translated strings.
 *
 * <p>The UI works in plain {@code String}s rather than Minecraft's text
 * components: everything PhotoSync displays is a translated line with a colour
 * chosen by the caller, and nothing needs a hover event or a click event.
 */
public interface Translator {

    /** The translation for {@code key}, or the key itself when it is missing. */
    String get(String key, Object... arguments);

    boolean has(String key);
}
