README
Table of contents
About
dima is a simple, powerful and lightweight Node.js module that allows you
to easily internalize your application using folders and JSON files.
Installation
Node.js 14.0.0 or newer is required.
Install a stable version: npm install dima
The version you want: npm install dima@version
# npm install dima@0.0.0
Example usage
const dima = require('dima');
const client = new dima(require('path').join(__dirname, 'locales/'));
client.translateFrom('en', 'howdy', { name: 'Giulian Moitinho', living: 'Brazil' });
// Howdy! My name is Giulian Moitinho, and I live on Brazil.
Contributing
Before creating an issue, please ensure that it hasn't already been reported/suggested, and double-check the documentation.