public static void Initialize(string language) { Logger.Debug("Initializing Localization..."); var json = WebInteractions.DownloadString($"https://raw.githubusercontent.com/easly1989/ffxiv_act_dfassist/master/localization/{language}.json"); _localizedMap = !string.IsNullOrWhiteSpace(json) ? JsonConvert.DeserializeObject <Dictionary <string, string> >(json) : new Dictionary <string, string>(); Logger.Debug(_localizedMap.Any() ? $"Localization Initialized, for language: {language}!" : "Unable to initialize Localization!"); }
public static void Initialize(string language) { Logger.Debug("Initializing Data..."); var json = WebInteractions.DownloadString($"https://raw.githubusercontent.com/easly1989/ffxiv_act_dfassist/master/data/{language}.json"); Fill(json, language); Logger.Debug(Initialized && Instances.Any() && Roulettes.Any() ? $"Data {Version} Initialized!" : "Unable to initialize Data!"); }
public static void Initialize(string language) { var json = WebInteractions.DownloadString($"https://raw.githubusercontent.com/easly1989/ffxiv_act_dfassist/master/localization/{language}.json"); _localizedMap = string.IsNullOrWhiteSpace(json) ? new Dictionary <string, string>() : JsonConvert.DeserializeObject <Dictionary <string, string> >(json); }
public static void Initialize(string language) { var json = WebInteractions.DownloadString($"https://raw.githubusercontent.com/easly1989/ffxiv_act_dfassist/master/data/{language}.json"); Fill(json, language); }