The translations are a bit incorrect my friend.
Peas are not "alverjas" they are "arvejas"
Legumes are "las legumbres" not "los legumbre" the substantive is feminine.
Make note of this tiny corrections , otherwise Spanish speakers wont get you when ordering food hehe
Beans are "frijoles" not "frejoles"
With "las legumbres", you are right, I corrected it. Thank you.
By peas and beans, there are soooo many local variations I simply can't list them all. Especially in Latin America.
Ex.:
Diccionario Real Academia de Esp.:
alverja
De arveja.
f. algarroba (‖ planta).
f. Am. guisante.