discord-locale-service
v1.0.6
Published
Locale system for discord bot written in node.
Downloads
3
Readme
Module made, generally for me
Usage:
const {MutlilingualService} = require("discord-locale-service");
const LangService = new MultilingualService('langs')
client.on("message", (message) => {
if(message.content === 'test'){
message.channel.send(LangService.getRef('TEST', 'pl', {var: var}))
}
})
Example JSON file
!! It must be named as lang..json !!
{
"refs":{
"TEST": "Example test with example {{var}}"
}
}
if you want help - contact me here мαƒιиєєєк#9999