localizationkit

0.0.4 • Public • Published

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")

Package Sidebar

Install

npm i localizationkit

Weekly Downloads

0

Version

0.0.4

License

ISC

Last publish

Collaborators

  • willpowell8