public void LoadLanguage(string file) { try { string local = File.ReadAllText(file); Lang = JsonConvert.DeserializeObject <GhostLocale>(local); local = null; } catch (Exception ex) { Logger.Instance.Log.Error("Unable to load language file " + file, ex); } finally { GC.Collect(); } }
public LanguageManager() { Lang = new GhostLocale(); }