Translate user entered comment to Spanish/English

If you have added the comments feature to a component, how would you go about adding the option to translate the users comment to English/Spanish and return that text to the comment box, below original comment?

If you have a paid plan with access to Glide AI, you can try something like this:

  • Add a user-specific Text column in your Comments table to store the translation

  • Create a Template column with this format:

    M
    
    *Translation: T*
    

    Where M = the original message, and T = the translated text.

  • Add an If-Then-Else column:

    • If the Translation column is not empty → show the template
    • Else → show the original message text
  • Set your Comments component to display that ITE column as the comment text.

  • Under the Collection item actions (when configuring the Comments component), add a Translate action:

    • Use a Generate Text AI action
    • Set the instructions like: “Translate the comment to Spanish if it’s in English, or to English if it’s in Spanish”
    • Input: the original comment text
    • Output: the Translation column

You can get more info on the AI action here:

Thank you!

1 Like

What about free plan?

I know a way for free AI that consumes zero updates but it is secret :eyes:

I DON’T ADMIT TO NOT LOOKING :eyes: :eyes: