Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to translate offline paymenent #616

Open
mishop opened this issue Oct 13, 2024 · 1 comment
Open

How to translate offline paymenent #616

mishop opened this issue Oct 13, 2024 · 1 comment
Assignees

Comments

@mishop
Copy link

mishop commented Oct 13, 2024

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants