mautic / mautic/api-library

Form embed, translate error messages

Open
#65 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
205
Forks
129
PR merge metrics
No merged PRs in 30d

Description

Embedding a Mautic form with the API works but i need to translate the error messages in the url.
At the moment Mautic returns me to
URL?mauticError=Errors%3A<br%20%2F>

  1. %27Email%27%20is%20required.<%2Fli><%2Fol>#keep_me_po

    How can i translate Email is required?
    Is it possible to alter the message, remove the HTML in de url?


    Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the API form-embedding flow that redirects validation errors into the URL, then identify how the “Email” required message is generated and localized. The issue does not name a file or test; done should include a documented or implemented way to translate the message and control the returned HTML.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
api, internationalization
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.