dima

Simple, powerful and lightweight internalization module to your node application.

Usage no npm install needed!

<script type="module">
  import dima from 'https://cdn.skypack.dev/dima';
</script>

README

dima

NPM package version NPM package downloads

NPM install info

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.