Api with label translation,

I created a label transaltion to tamil,

And changed the language in user list of administrator,
Same user login i am using in this api.

curl --location 'http://s15.localhost:8000//api/resource/DocType/Survey%20Form' \
--header 'Accept-Language: ta' \
--header 'Cookie: full_name=Administrator; sid=146b21872572; system_user=yes; user_id=Administrator; user_image='
ta

language name that is mentioned in erpnext language doctype for tamil

But the api seem not working, Anyone worked on this.

Version:
erpnext 15
frappe 15

Hi @keerthana_2001

I think you cannot do that, because /api/resource return the “true” value for the docfield and the “true” values on the database.

For an example if i have translation for
1 → 10
the api/resource will still show id : 1. It will be wrong if the API show 10. User will have a hard time processing the data.

Maybe you can create a custom API for returning the translated document and the translated values if you want.

Thank you @antzforwork