疯狂的狮子Li
2023-02-03 5cce09b5c2e520954d85e6e42b9b6f55472dbb59
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);
}