0.1.4 • Published 5 years ago

semantics-i18n v0.1.4

Weekly downloads
7
License
MIT
Repository
github
Last release
5 years ago

Semantics

Semantics is a simple yet powerful i18n library for JavaScript, built for both Node and the web.

Note: Semantics is in v0; it should not be considered stable.

Installation

Node

npm i semantics-i18n
const Semantics = require('semantics-i18n');

Browser

<script src="path/to/semantics.js"></script>
<!-- Semantics will be declared as a global object -->

Basic usage

var $ = Semantics('es', {
    "values": {
        "Hello": "Hola",
        "Yes": "Sí",
        "No": "No",
        "Maybe": "Tal vez"
    }
});

$('Hello'); // "Hola"

Take a look at the examples.

License

MIT License

0.1.4

5 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago