How to Translate English to Mandalorian with Twilio Serverless and SMS
Twilio's Serverless Toolkit and the Mandalorian Translator API can be used to build a simple app that translates English text into the Mandalorian language. To start, one needs to sign up for a Twilio account and configure an SMS-capable phone number. The free tier of the Fun Translations API has limitations on the number of requests per hour, but it is sufficient for this example. A paid plan can be used for more extensive use. The Serverless Toolkit provides CLI tooling to develop locally and deploy to Twilio Runtime, making it easy to build web apps quickly. The app makes a GET request to the Fun Translations API with the text to translate, parses the response, and returns a text message containing the translated text and an image of Yoda! To open up the app to the public, configure the function with a Twilio phone number by setting the Function Path in the Twilio Console. The completed app can be viewed on GitHub.
Company
Twilio
Date published
May 3, 2021
Author(s)
Lizzie Siegle
Word count
808
Language
English
Hacker News points
None found.