richie
5 years ago
1 changed files with 31 additions and 0 deletions
@ -0,0 +1,31 @@
|
||||
package com.fanruan.api.design.util; |
||||
|
||||
import com.fr.design.i18n.Toolkit; |
||||
|
||||
/** |
||||
* @author richie |
||||
* @version 10.0 |
||||
* Created by richie on 2019-08-28 |
||||
* 设计器国际化工具类 |
||||
*/ |
||||
public class I18nDesignKit { |
||||
|
||||
/** |
||||
* 文本国际化 |
||||
* @param key 国际化键 |
||||
* @return 国际化后的值 |
||||
*/ |
||||
public String i18nText(String key) { |
||||
return Toolkit.i18nText(key); |
||||
} |
||||
|
||||
/** |
||||
* 带参数的文本国际化 |
||||
* @param key 国际化键 |
||||
* @param args 参数 |
||||
* @return 国际化后的值 |
||||
*/ |
||||
public String i18nText(String key, Object... args) { |
||||
return Toolkit.i18nText(key, args); |
||||
} |
||||
} |
Loading…
Reference in new issue