/// <summary> /// Sets the cultures list /// </summary> public static async void SetCultures() { Cultures.Clear(); Cultures.Add(new CCulture { DisplayName = "German", ISO = "de" }); Cultures.Add(new CCulture { DisplayName = "English", ISO = "en" }); Cultures.Add(new CCulture { DisplayName = "Spanish", ISO = "es" }); Cultures.Add(new CCulture { DisplayName = "Franch", ISO = "fr" }); Cultures.Add(new CCulture { DisplayName = "Hindi", ISO = "hi" }); Cultures.Add(new CCulture { DisplayName = "Italian", ISO = "it" }); Cultures.Add(new CCulture { DisplayName = "Japanese", ISO = "ja" }); Cultures.Add(new CCulture { DisplayName = "Korean", ISO = "ko" }); Cultures.Add(new CCulture { DisplayName = "Polish", ISO = "pl" }); Cultures.Add(new CCulture { DisplayName = "Portuguese", ISO = "pt" }); Cultures.Add(new CCulture { DisplayName = "Russian", ISO = "ru" }); Cultures.Add(new CCulture { DisplayName = "Swedish", ISO = "sv" }); Cultures.Add(new CCulture { DisplayName = "Chinese", ISO = "zh" }); Cultures.ToList().ForEach(culture => AddRegions(culture.ISO)); await AddAdditionalCultures(); await CTranslator.GetAvailableLanguages(); Cultures = Cultures.OrderBy(culture => culture.ISO).ToObservableList(); var config = new CConfig(); await config.LoadFromFileTask(@"D:\Dev\Desktop\ULocalizer\ULocalizer\bin\Debug\data\Localization.ini"); }
public static string GetDefaultCulture() { return(Cultures.OrderBy(a => a.Id).FirstOrDefault().Code); }