My API returns serialized data with active_model_serializers
, some of these attributes are translated into the frontend using angular-translate
.
The dictionary containing the translations is growing, I want to translate this data into the backend and to return this data translated.
The form I found was through the layer of serializers defining methods with each attribute and translating them.
I wish the opinion of others who have done something similar in their projects.
Thank you