|
|
|
@ -1,4 +1,5 @@
|
|
|
|
|
package com.fanruan.api.i18n; |
|
|
|
|
|
|
|
|
|
import com.fr.locale.InterProviderFactory; |
|
|
|
|
|
|
|
|
|
public class I18nKit { |
|
|
|
@ -11,6 +12,7 @@ public class I18nKit {
|
|
|
|
|
public static String getLocText(String string) { |
|
|
|
|
return InterProviderFactory.getProvider().getLocText(string); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 获取国际化文本 |
|
|
|
|
* |
|
|
|
@ -18,7 +20,7 @@ public class I18nKit {
|
|
|
|
|
* @param args 变量 |
|
|
|
|
* @return 返回国际化文本 |
|
|
|
|
*/ |
|
|
|
|
public static String getLocText(String string,String... args) { |
|
|
|
|
return InterProviderFactory.getProvider().getLocText(string,args); |
|
|
|
|
public static String getLocText(String string, String... args) { |
|
|
|
|
return InterProviderFactory.getProvider().getLocText(string, args); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|