Skip to content

h-oikawa-jp/slack-translator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slack Translator

Deploy Build Status Coverage Status

You can translate your chat using slack translator.

2015-11-07 12 19 14

How to Setup

You need to setup the following environment variables to integrate with Slack:

  • SLACK_API_TOKEN: You can get the API Token from Slack Web API
  • SLACK_WEBHOOK_URL: You can get the Incoming Webhook URL from here

Also, you need to choose a translator vendor to use:

  • TRANSLATE_ENGINE: The handle name of the translator vendor. Currently only support google and naver. google by default.

If you choose google as your TRANSLATE_ENGINE, you need to one more environment variable for Google Translate API as well:

Note that you don't need any additional environment variables when you choose naver as your TRANSLATE_ENGINE.

Then you can add Slash Commands to use translator.

  1. Commands: /[target language]
  2. URL: https://[host]/[source language]/[target language]
  3. Method: POST

For example, if you are using Korean, and you want to add Korean->Japanese translation command, try to add Slash command like this.

  1. Commands: /ja
  2. URL: https://[host]/ko/ja
  3. Method: POST

About

You can translate your chat using slack translator.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%