How to use the translatable fields in the frappe.get_list or frappe.get_all filters or or_filters

I am building the custom API to get a list of documents for a specific doctype, for example, doctype Risk Category and category_name and category_code are translatable fields in this doctype, so when I search based on the language no data returned but when searching based on the original data data returned correctly so how to fix this using Frappe 14 and PostgreSQL.