I have a question about whether it is possible, and if it is possible, how can you replace content in an array, by the content of another array.
Input: "blue red and green"
find = ["azul", "rojo", "verde", "y"]
replace = ["blue", "red", "green", "and"]
texto = texto.replace(find, replace)
Exit: "blue red and green"
Thank you very much, and sorry if I asked the question badly, I'm new in stackoverflow, but sometimes I have been insulted for not using the elements to separate query code.