/// <summary> /// Creates a new JsonCulture instance from the supplied language id. /// </summary> /// <remarks> /// /// This class uses a dictionary as its basis for storing/caching its information. This makes it incredibly easy to extend /// without having to create/remove properties. /// /// </remarks> public JsonCulture(Guid languageId) { Guard.IsNotNull(languageId, "languageId"); this.localizationService = EngineContext.Current.Resolve<ILocalizationService>(); // get all the resources by language id var resources = localizationService.GetJsonResourcesByLanguageId(languageId); // iterate and add all resources resources.ForEach(action => { this.AddResource(action.Value); }); }