i-love-flamingo / flamingo-commerce

Flexible E-Commerce Framework on top of Flamingo. Used to build E-Commerce "Portals" and connect it with the help of individual Adapters to other services.
https://www.flamingo.me/flamingo-commerce.html
MIT License
507 stars 81 forks source link

How to translate offline paymenent #616

Open mishop opened 1 week ago

mishop commented 1 week ago

Can you please help me how to translate: func (o *OfflineWebCartPaymentGateway) Methods() []domain.Method { return []domain.Method{ { Title: "cash on delivery", Code: "offlinepayment_cashondelivery", }, { Title: "cash in advance", Code: "offlinepayment_cashinadvance", }, } }

I try in json as: { "id": "offlinepayment_cashinadvance", "translation": "Plaćanje unapred" }, { "id": "offlinepayment_cashondelivery", "translation": "Plaćanje pouzećem" }

and try as: ` { "id": "checkout.payment.offlinepayment_cashondelivery", "translation": "Plaćanje prilikom preuzimanja" },

{ "id": "checkout.payment.offlinepayment_cashinadvance", "translation": "Avansno plaćanje" }`

But not working.

IvanMaidurov commented 4 days ago

hello, if I understand it correctly, you're using flamingo-demo-carotene, since it's a demo project it has only few examples. Translation for those fields is not supported, but if you want - you can contribute to add this support.

for example this will use translation from here