Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/brycedorn/minitranslate
- Owner: brycedorn
- Created: 2014-03-28T21:07:00.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-11-16T06:05:19.000Z (about 9 years ago)
- Last Synced: 2024-12-17T05:00:32.711Z (about 1 month ago)
- Topics: translate, translator
- Language: CSS
- Homepage: http://minitranslate.herokuapp.com/
- Size: 605 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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!