Skip to content

Metevier/webtask-slack-translate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slack Webtask - Translate

A translation webtask for use with Webtask's Slack Integration

How to use

  • First install the webtask integration
  • Then create a new slack webtask named translate (or anything you want): /wt create translate
  • In the generated message click "Edit in Webtask Editor"
  • On the webpage, replace the generated code with the code in dist/webtask.js and hit save
  • Click the wrench icon -> secrets, and add you Google Translate API key as API_KEY

You can now translate text in slack! Use the following format:

/wt [translate-command] [target-language] [any text you want]

Example:

/wt translate fr This is some sample text.

To see a list of available languages:

/wt [translate-command] lang

Development

Copy .env.example to .env, and populate API_KEY

Create

npm run create

Deploy

npm run deploy

Test

npm test

All Tests, Including Integration Tests against the Google Translate API

npm test:all

About

Google Translate Integration for Slash Webtask

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published