World of Warcraft translator that tries to emulate the same translation process used in the game client.
Translation is unidirectional, you can translate from "common" (human language like this) to any of the supported languages, but not the other direction, since the words are simply replaced with another random word of the same lenght.
npm install wow-lexicon
const lexicon = require('wow-lexicon');
lexicon.translate('dwarven', 'This is JavaScript!!');
// => Helm we Gar-Mogoth!!
There is also a shortcut to each language for easier use:
lexicon.orcish('This is JavaScript!!');
// => Tago ag Maza'rotha!!
Also you can try it directly from the console:
$ wow-lexicon draconic Also in the console
[Draconic] Aman il daz toralar
Returns the translated text.
Type: String
The name of one of the supported languages.
Type: String
The text to translate.
Language definitions are taken from the wiki and other sources of the game.
- Common (Humans)
- Darnassian (Night elves)
- Draconic (Dragons)
- Draenei (Draenei)
- Dwarven (Dwarves)
- Eredun (Demons)
- Gnomish (Gnomes)
- Gutterspeak (Forsaken)
- Kalimag (Elementals)
- Orcish (Orcs)
- Taurahe (Tauren)
- Thalassian (Blood elves and High elves)
- Zandali (Trolls)
Contributions are always welcome! Please run npm test
beforehand to ensure everything is ok.
If you use this package please consider starring it :)