Translation contribution

Hello,
I’ve been working on the translation of the p5.js website to portuguese, but I did not understand how to the reference section should work, it doesn’t have an english json file, but it has an es.json file, the parameters and return are like this.

    "alpha": {
      "description": "Extrai o valor de alpha de uma corem um array de pixels.",
      "params": ["Objeto: objeto p5.Color o arreglo de pixeles"],
      "returns": "o valor do alpha"
    },

but the english site is like this

could anyone explain how should I format it?

Thank you

1 Like

I don’t know Portuguese but…

Keywords should still be in English, so p5.Color should still be p5.Color.

Oh, and good luck on the translations!

1 Like