示例#1
0
文件: Language.cs 项目: Hengle/Fish
 public static string GetLocalFormat(int id, params object[] objects)
 {
     try
     {
         var config = PriorLanguageConfig.Get(id);
         if (config != null)
         {
             return(string.Format(config.content, objects));
         }
         else
         {
             return(string.Empty);
         }
     }
     catch (System.Exception ex)
     {
         Debug.Log(ex);
         return(string.Empty);
     }
 }
示例#2
0
文件: Language.cs 项目: Hengle/Fish
    public static string GetLocal(int id)
    {
        var config = PriorLanguageConfig.Get(id);

        return(config == null ? string.Empty : config.content);
    }