Skip to content

Add Translator to Contact FormΒ #3873

@tyler-vs

Description

@tyler-vs

Describe the enhancement you'd like

We would like to integrate the Google Translator API to automatically translate messages submitted through the contact form. If a message is detected to be written in a language different from the store's primary locale, it should be translated to the store's primary language before being processed or displayed. This will help store staff better understand customer inquiries and improve response accuracy.

Potential drawbacks include added API costs, latency from translation requests, and handling edge cases where language detection may be inaccurate.

Describe alternatives you've considered

  • Manual translation by staff using external tools.
  • Relying on browser-based translation features.
  • Only accepting messages in the store's primary language.

Additional context/screenshots

This feature would be especially useful for stores with international customers. Example: If the store's primary locale is English and a customer submits a message in Spanish, the message would be translated to English before being sent to the store's inbox.

Might be able to use with blog post comments?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions