Yjoioooo
2023-03-09 891f71b1c2f1c0e17a4eb3653c7e23a9e468e1cf
ruoyi-common/ruoyi-common-translation/src/main/java/com/ruoyi/common/translation/core/TranslationInterface.java
@@ -5,13 +5,14 @@
 *
 * @author Lion Li
 */
public interface TranslationInterface {
public interface TranslationInterface<T> {
    /**
     * 翻译
     *
     * @param key 需要被翻译的键
     * @param key   需要被翻译的键(不为空)
     * @param other 其他参数
     * @return 返回键对应的值
     */
    String translation(Object key, String other);
    T translation(Object key, String other);
}