flamingo-commerce
flamingo-commerce copied to clipboard
How to translate offline paymenent
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.