TranslationProvider.java 747 Bytes
/*
 * This file is part of LiteLoader.
 * Copyright (C) 2012-16 Adam Mummery-Smith
 * All Rights Reserved.
 */
package com.mumfrey.liteloader.api;

/**
 * Interface for providers which can handle translation requests
 *
 * @author Adam Mummery-Smith
 */
public interface TranslationProvider extends CustomisationProvider
{
    /**
     * Translate the supplied key or return NULL if the provider has no
     * translation for the specified key
     */
    public abstract String translate(String key, Object... args);

    /**
     * Translate the supplied key to the specified locale, or return NULL if the
     * provider has no translation for this key
     */
    public abstract String translate(String locale, String key, Object... args);
}