arun
Jan 30, 2022

--

When you store audits as separate db, how do you handle translations

If you have a complex data structure

like say

profile: {

places: [ { "address" : "xx", "city":yy", "type": "Main"},

{ "address" : "xx", "city":yy", "type": "Service"}]

if a city is changed in places[1], how did you store the diff? While retrieving and showing back to users in UI, how was it shown - especially the field names, because it is very app and locale specific.

Say I wanted to show like this

User A changed "City" of "Service" from "Mumbai" to "Benagluru"

--

--

arun
arun

Written by arun

I enjoy photography, jungle safari, travel, programming and writing. I'm here to share my experiences.

No responses yet