From 847f08e1039226091701702a9e2c2d893a389448 Mon Sep 17 00:00:00 2001 From: richie Date: Wed, 28 Aug 2019 12:31:34 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E8=AE=A1=E5=99=A8=E5=9B=BD=E9=99=85?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/design/util/I18nDesignKit.java | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/main/java/com/fanruan/api/design/util/I18nDesignKit.java diff --git a/src/main/java/com/fanruan/api/design/util/I18nDesignKit.java b/src/main/java/com/fanruan/api/design/util/I18nDesignKit.java new file mode 100644 index 0000000..6e50de0 --- /dev/null +++ b/src/main/java/com/fanruan/api/design/util/I18nDesignKit.java @@ -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); + } +}