-
Notifications
You must be signed in to change notification settings - Fork 6
Closed
Description
Hi great work however i am facing a difficulty using OrangeJetpack.Localization i am sending to my frontend the localized object, and the frontend will send an PUT/POST request meaning i will only update some localized properties for a specific language i tried to do it like this:
var state = db.States.FirstOrDefault(s => s.Id == st.Id);
LocalizedContent[] name = {
new LocalizedContent(lang, st.Name),
};
state.Set(p => p.Name, name);
AddOrUpdate(db, state);
db.SaveChanges();
however this approach will remove any other languages from the Name attribute json
maybe add a version of set like
Set(property, value, lang)that would replace only that value on the json dictionary would be enough
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels