language4wiki

1.0.0 • Public • Published

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

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 */

Package Sidebar

Install

npm i language4wiki

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

6.93 kB

Total Files

5

Last publish

Collaborators

  • niehausbert