疯狂的狮子li
2023-02-04 234f74f8f009a9f164639666d8f3e654f1845b7c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package com.ruoyi.common.translation.core;
 
/**
 * 翻译接口 (实现类需标注 {@link com.ruoyi.common.translation.annotation.TranslationType} 注解标明翻译类型)
 *
 * @author Lion Li
 */
public interface TranslationInterface {
 
    /**
     * 翻译
     *
     * @param key 需要被翻译的键(不为空)
     * @return 返回键对应的值
     */
    String translation(Object key, String other);
}