1.0.6 • Published 3 years ago

discord-locale-service v1.0.6

Weekly downloads
6
License
MIT
Repository
-
Last release
3 years ago

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

1.0.1

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.0

3 years ago