Skip to content
LucasAlt edited this page Jul 18, 2022 · 3 revisions

Internationalization

You can add languages to the robot so that it is translated and accessible to everyone!

Create translation file

To do this, nothing could be simpler, just copy the file ./lang/en.js then rename it following the ISO 639-1 nomenclature. Once the file is copied, you can translate all the emojis.

⚠ Attention, if you want to add an emoji that is not present in the following list. Please create an issue for each emoji you want to add.

File structure

export const emojis = [
  {
    id: 'spookybot', // Do not delete this emoji in you translation file
    emoji: '761602615326146590',
    words: ['spooky'],
  },
  ...
]

Emojis structure

  {
    id: '', // Emoji unique ID (see list below)
    emoji: '', // Emoji (see list below)
    words: ['', '', ''], // Array of word that need to trigger the reaction
  }

ID list

Emojis ID

Emoji ID
Custom SpookyBot emoji spookybot
πŸ‘½ alien
πŸ¦‡ bat
🦴 bone
🧠 brain
🧹 broom
🍬 candy
πŸ‘» ghost
🍭 lollipop
πŸŽƒ pumpkin
πŸ’€ skull
πŸ§› vampire
πŸ§™β€β™€οΈ witch
πŸ§Ÿβ€β™‚οΈ zombie
Clone this wiki locally