i have developed REST services using node js. I'm using node mailer to send email and this is my example code:
var client = nodemailer.createTransport(sgTransport(options));
    var email = {
        from: 'noreply@website.com',
        to: user.email,
        subject: 'Registration successfully confirmed',
        text: 'Hi welcome to our group'
    };
    client.sendMail(email, function(err, json){
        if (err){
            return res.status(500).send({ msg: err.message });
        }
        else {
            res.status(200).send({status: 'ok', data: { msg: 'A verification email has been sent to ' + user.email + '.'}} )
        }
    });
Now i would like to send the mail text with translation when client send in POST request the national code. How i can store all text mail into config file and read it in my controller by config?
Thanks
 
    