language4wiki
v1.0.0
Published
This is a language that supports language Javascript handling of AppLSACs to support the creation of support tools for learning resources. The provided package is used e.g. for language specific select boxes in HTML.
Downloads
4
Maintainers
Readme
Language4Wiki
This package provides supports for language Javascript handling of AppLSACs for MediaWikis learning resources (see Wikiversity). The repository contains JSON data structures for creating of language support for AppLSAC tools of learning resources. The provided package is used e.g. for language specific select boxes in HTML.
Example AppLSACs
- Wikipedia2Wikiversity
- Wiki2Reveal - create online presentation on-the-fly from Wikiversity learning resources (see https://en.wikiversity.org/wiki/Wiki2Reveal)
Installation
Assuming you have already created a repository for you project and you want to use language4wiki
in that project within your AppLSAC
npm install language4wiki --save
If you just want to use the package in your script install
npm install language4wiki
If you want to install that just for building your AppLSAC without using it in your WebApp that install
npm install language4wiki --save-dev
Usage
The package contains the
var l4w = require("language4wiki");
console.log(l4w.languages);
/*
will output
{
"text": "English",
"value": "en"
},
{
"text": "Spanish",
"value": "es"
},
{
"text": "German",
"value": "de"
},
...
}
to the console */