How to add description for each product fetched?

I fetched the products and their prices from API. Now I need to have a description for each product (because it needs to be translated). How can I achieve that?

Please see the post on Requesting Help.

I recommend reading the work of @regis on Api here

1 Like

I solved this. Created en.json file inside i18n folder and called every parameter inside by product name like this:

{{ $desc := print "desc-" "" .Name }}
{{ i18n $desc . }}

inside en.json file:

"desc-ProductName": {
     "other": "product description"
"desc-ProductName1": {
     "other": "product description 1"