1.2.0 • Published 10 years ago

minitranslate v1.2.0

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

minitranslate.js

A lightweight way to change words into other words.

Code Climate NPM version

minitranslate.me

Installation

$ npm install minitranslate

Features

  • WYSIWYG word-replacement translator
  • Tiny: only 2.4 KB compressed
  • Dead-simple library in mt-lib.js:

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

    <input id="mt-input"/>
    <input id="mt-output"/>
  • Add class .mt-patient to #mt-input to translate only once #mt-button is clicked

    <input id="mt-input" class="mt-patient"/>
  • Static translation:

    <div id="mt-translate"/>
  • Case insensitive:
    • hElLo => wOrLd
    • bYe => gOodbye
  • Punctuation currently only includes !?,. and appends to word
    • Hello!*(> => World!
1.2.0

10 years ago

1.1.3

10 years ago

1.1.2

10 years ago

1.1.0

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

0.8.1

10 years ago

0.8.0

10 years ago

0.7.1

10 years ago

0.7.0

10 years ago

0.6.3

10 years ago

0.6.2

10 years ago

0.6.1

10 years ago

0.6.0

10 years ago

0.1.7

10 years ago

0.1.6

10 years ago