ln3

0.0.4 • Public • Published

ln3

MIT

Custom, simple, extendable internationalization module for JavaScript applications

Introduction

The idea behind this module is to provide a simple way to perform internationalization by using a call that contains both language identifier and default value. Just like this:

ln3.text("sample.text", "This is a sample text that should be translated")

This way, a developer don't need to dig into project files in order to find what the language constant actually means. From the other hand, it is also easy to collect all the strings for translation using a RegEx-based tool and make them available for translation either by developers or other parties.

Installation

From the root of your project.

npm install ln3

Usage

import ln3 from 'ln3';

console.log( ln3.text("sample.text", "This is a sample text that should be translated") );

Package Sidebar

Install

npm i ln3

Weekly Downloads

0

Version

0.0.4

License

MIT

Unpacked Size

83.4 kB

Total Files

7

Last publish

Collaborators

  • stanurkov