Skip to content

Translator

AnnoyingRains edited this page Oct 11, 2022 · 4 revisions

Translator

The Translator allows multiple channels to be linked together in "Channel Groups", each channel group would be dedicated to a singular purpose (eg #general) and contain a different channel for each language that is supported.

How to

Step 1: Channel Layout

This is mostly personal preference, but each channel group must not have more than one channel of the same language, and each group needs one channel for each language you want.

An example is provided below, you do not need to follow it exactly, or at all. As long as you have one channel per language, and no double ups, you'll be fine.

Note that to support different topics (as in, traditional discord channel), like in the above example with general and off-topic, you would make one channel group for each topic.

For example:

Group 1 (number is unimportant) would be: English general, french general and Spanish general Group 2 would be: English off-topic, french off-topic and Spanish off-topic

Step 2: Webhooks

You will need to create a webhook for each channel you wish to add to the group. This can be found in the channel settings.

You do not need to change the names or the profile pictures for these webhooks, it is managed automatically. Although you can edit them for your own reference if you wish.

Note down the links for these webhooks as you go.

Step 3: Channel IDs

You will need to get the channel ID for each channel you would like to add to the group. You will need to enable "Developer Mode" in Discord's settings for this.

Info on how to do this can be found here

Note that once developer mode is enabled, you can just right-click the channel and select "copy ID" to copy it's ID to your clipboard.

Step 4: ISO 639-1 language codes

While other methods may be possible, the recommended approach is to use ISO 639-1 language codes for the language parameter.

A list of these codes can be found on this Wikipedia article

Step 5: Setting Up the Channel Group

By now you should know the following:

  • the channel ID for EACH channel in the channel group
  • the ISO 639-1 code of each channel in the group
  • the link to each channel's webhook

You can now run the command /translator channelgroup create followed by the information you have previously collected