No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
ChangeLog.md
Readme.md
index.js
package.json
test.js

Readme.md

Localization Kit - Javascript

This is the initial version of KIT for Javascript. This currently supports localization delivery for your javascript or nodejs app.

Features

  • Easy to integrate javascript library
  • Web hosted strings
  • Web portal for realtime updates

Todo

  • Live update
  • Modify in page ui
  • String auto detection

Use by Installation

npm install --save localizationkit

Get a developer key from localizationkit.com where you can create a new app and generate a key.

Start the localization engine:

var LocalizationKit =  require('localizationkit')
Localization = new LocalizationKit("[[API_KEY]]")

Use as script tag

If you want to include the localization as a script tag you dont need to call load a language as it detects the browser language.

<script src="//www.localizationkit.com/v2/app/[[API_KEY]]/localizationkit.js"></script>

How to use

Load language

Not needed when you load as script unless you want to change language

Localization.loadLanguage("en", function(){
	console.log("English Language loaded")
})

Get String

var localizedString = Localization.getValue("com.general")