Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/brycedorn/minitranslate

A lightweight way to change words into other words.
https://github.com/brycedorn/minitranslate

translate translator

Last synced: 28 days ago
JSON representation

A lightweight way to change words into other words.

Awesome Lists containing this project

README

        

minitranslate.js
====================

A lightweight way to change words into other words.

[![Code Climate](https://codeclimate.com/github/guavacat/minitranslate.png)](https://codeclimate.com/github/guavacat/minitranslate) [![NPM version](https://badge.fury.io/js/minitranslate.svg)](http://badge.fury.io/js/minitranslate)

[http://minitranslate.herokuapp.com](http://minitranslate.herokuapp.com)

## Installation

$ npm install minitranslate

## Features
* WYSIWYG word-replacement translator
* Tiny: only **2.4 KB** compressed
* Dead-simple library in `mt-lib.js`:

```java
var mt_lib = [
{ w: "Hello", r: "Goodbye" },
{ w: "World", r: "Mars" }
];
```
* Dynamic translation:

```html


```
* Add class `.mt-patient` to `#mt-input` to translate only once `#mt-button` is clicked

```html

```
* Static translation:
```html


```
* Case insensitive:
* hElLo => wOrLd
* bYe => gOodbye
* Punctuation currently only includes `!?,.` and appends to word
* Hello!*(> => World!