TranslationInterface.java 401 B

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