https://github.com/willpowell8/localizationkit_js
https://github.com/willpowell8/localizationkit_js
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/willpowell8/localizationkit_js
- Owner: willpowell8
- Created: 2017-12-18T19:08:38.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-23T14:50:02.000Z (over 8 years ago)
- Last Synced: 2025-09-24T06:59:38.350Z (9 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- Changelog: ChangeLog.md
Awesome Lists containing this project
README
# 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
``` javascript
npm install --save localizationkit
```
Get a developer key from [localizationkit.com](https://www.localizationkit.com/app) where you can create a new app and generate a key.
Start the localization engine:
``` javascript
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.
``` html
```
## How to use
### Load language
Not needed when you load as script unless you want to change language
``` javascript
Localization.loadLanguage("en", function(){
console.log("English Language loaded")
})
```
### Get String
``` javascript
var localizedString = Localization.getValue("com.general")
```