• nicogo

    (@nicogo)


    Hello,

    I’m testing your plugin for a French website.

    I configured a Custom Form to translate labels and placeholder in French. Great !

    But when I submit the form with input errors or empty card inputs, it directly displays error message returned by HostedFieldsInstance.tokenize function form Braintree above the Customer form…

    Is it possible to intercept error messages from Braintree and translate it, before displaying message above checkout form ? Maybe with a table of error code and customized messages ?

    I don’t need a full localization of the plugin, but only the part visible to my French customer.

    Thanks for your help,
    Nicolas

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Clayton R

    (@mrclayton)

    Hi @nicogo,

    Currently there is no option to localize as these messages come directly from Braintree. However, you have hit on a good point. In a future version we are going to have a settings that allows you to enter the text you want displayed based on the language of your site. This will allow you to control the language and the error message that displays.

    Kind Regards,
    Clayton

    Thread Starter nicogo

    (@nicogo)

    Hi @mrclayton,

    Indeed, there is no plugin Braintree correctly translated into French.
    Fortunately, your plugin offers more customization to fit the form in French…

    Maybe I’ll intercept the error code in JS to display messages in French, pending your future release.

    Best regards,
    Nicolas

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Locaization of error message on Custom forms’ is closed to new replies.