recursivecurry / slack-translator

You can translate your chat using slack translator.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

Google translator

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

Naver translator

If you choose naver as your TRANSLATE_ENGINE, you need to add two more environment variable for Naver Translator API as well:

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.


Languages

Language:Python 100.0%