Recommended approach for "merging" Umbracos Transl...
# help-with-umbraco
c
Hey all, Debating what the best approach is to provide Dictionary values out of the backoffice of a V13 site to an embedded react app loaded through a view component. My current thinking is: Create an APIController that can be called via the react app returning all of the required values and then simply hooking that up in react as needed. But wondered if anyone tackled a similar situation and whether theres any fancy ways to almost do this without needing to hook up a custom API Endpoint?
For anyone interested - I ended up taking the approach shared by Janae Cram: https://gist.github.com/naepalm/3972cf3e126935511c4792d74d748fa2 So if you ever see this, Thank you Janae! Modified it to more modern DI practice for the localization service and the UmbracoHelper but otherwise worked a treat. Need to just sanitise html and adjust the keys to alias' now https://cdn.discordapp.com/attachments/1344277163976953907/1344348027544010925/image.png?ex=67c0952a&is=67bf43aa&hm=d52aac4371cefb941ac7db6ec3bbee38a7f3e83f42d6a8618a9cc91a5d6b34ed&
4 Views