疯狂的狮子li
2023-01-31 a5835aa0c26870fcedb06cbd4a84ed2908e25c2f
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);
}