I am using Wordpress rest API with a React application. I have a category called 'Q&A', and wordpress templating system is able to translate it properly when rendering.
However, when using dynamic views with react and retrieving that data from Wordpress API, that name is returned as "name": "Q&A"
. Also considering that I want to include categories as an initial state for React in the HTML delivered, I guess that encoding is correct.
I suppose that is client's responsibility to translate those fields. Which is the best way to translate those responses in actual strings to be rendered?