Skip to content

A slash command for Slack that translates text and announces it in a channel

Notifications You must be signed in to change notification settings

adamstirtan/translation-gcp-function

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Translation Slack Command

A slash command for Slack that translates text using Google Cloud Translation and announces it in a channel.


Available Commands

  • /to_french
  • /to_spanish
  • /to_english

Deploying to GCP Cloud Functions

In this example, the French translation function is deployed. Change the name and entry pont to support other languages.

gcloud functions deploy translation_function_french \
--gen2 \
--runtime=python310 \
--region=REGION \
--source=. \
--entry-point=to_french \
--trigger-http \
--set-env-vars "SLACK_SECRET=YOUR_SLACK_SIGNING_SECRET" \
--allow-unauthenticated

About

A slash command for Slack that translates text and announces it in a channel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages