Translating variables

We have a function variable in the form that takes in pre-filled data and adds labels to it for displaying to the interviewer.

Ration_type == 1 ? "पांढरा" : Ration_type == 2 ?"नारंगी / केसरी" :Ration_type == 3 ? "पिवळा" : Ration_type == 4 ? "अंतोदयी" : ""

This variable will always display the output in Marathi. How do I ensure that this is displayed in English when the language is changed.

I figured it out. I created a separate function variable for each language, used that variable in the translation.