How to translate the "sort by" options on the "collections" object

Hi, i am currently implementing the “sort by” functionality for the products page using the below code i got from: https://shopify.dev/docs/api/liquid/objects/collection#collection-sort_options ?

However, my store is in spanish and I was wondering what is my best shot at translating the output of “options.value”? I learnt about locales (https://shopify.dev/docs/storefronts/themes/architecture/locales) but Im not sure how I would use the schema to translate something that is coming from the API of Shopify.

How can i translate something like this? Thanks.

This was useful, it allowed me to change the language of the variables I was looking to translate.

https://help.shopify.com/en/manual/markets/languages/manage-languages#add-new-language