Simple JavaScript library to internationalise html files
Go to file
Robert von Burg 7f0613a40f Update README.md
Fixed markdown for examples
2014-07-22 22:17:54 +02:00
lib Refactore layout and added README.md 2014-07-22 22:14:11 +02:00
test Refactore layout and added README.md 2014-07-22 22:14:11 +02:00
.gitignore [New] Initial commit 2014-07-22 21:53:16 +02:00
LICENSE Initial commit 2014-07-22 21:51:42 +02:00
README.md Update README.md 2014-07-22 22:17:54 +02:00

README.md

js_i18n

Simple JavaScript library to internationalise html files

Usage

Include in your HTML file:

<script src="i18n.js"></script>

Then initialize somehow after page load:

i18n.init();
i18n.translate_document();

Translate single keys:

var msg = i18n.t('my_key');