forked from fanruan/finekit
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
717 B
31 lines
717 B
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); |
|
} |
|
}
|
|
|