Browse Source

update: 修改格式

pull/22/head
zjz1993 5 years ago
parent
commit
2706950e44
  1. 1
      src/main/java/com/fanruan/api/conf/HolderKit.java
  2. 8
      src/main/java/com/fanruan/api/i18n/I18nKit.java

1
src/main/java/com/fanruan/api/conf/HolderKit.java

@ -6,7 +6,6 @@ import com.fanruan.api.conf.impl.ObjectColConf;
import com.fanruan.api.conf.impl.ObjectMapConf;
import com.fanruan.api.conf.impl.SimConf;
import com.fr.config.holder.Conf;
import com.fr.config.holder.factory.Holders;
import java.util.Collection;

8
src/main/java/com/fanruan/api/i18n/I18nKit.java

@ -1,4 +1,5 @@
package com.fanruan.api.i18n;
import com.fr.locale.InterProviderFactory;
public class I18nKit {
@ -11,14 +12,15 @@ public class I18nKit {
public static String getLocText(String string) {
return InterProviderFactory.getProvider().getLocText(string);
}
/**
* 获取国际化文本
*
* @param string 需要国际化的值对应的键
* @param args 变量
* @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);
}
}

Loading…
Cancel
Save