Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 550 Bytes

README.md

File metadata and controls

25 lines (21 loc) · 550 Bytes

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