INACTIVE - http://mzl.la/ghe-archive - Localized and versioned Web Literacy Map
Перейти к файлу
Kate Hudson 488615a6e0 1.1.1 2014-03-28 13:17:15 -04:00
dist Language updates 2014-03-28 13:16:48 -04:00
example Updates for 1.1.0 2014-03-26 17:18:33 -04:00
grunt Added .strand(), .strands(), .getAllByStrand() and tests 2014-03-27 11:48:20 -04:00
src Added .strand(), .strands(), .getAllByStrand() and tests 2014-03-27 11:48:20 -04:00
tests Added .strand(), .strands(), .getAllByStrand() and tests 2014-03-27 11:48:20 -04:00
.gitignore ignore locale/ 2014-03-21 15:00:15 -04:00
Gruntfile.js Updates for 1.1.0 2014-03-26 17:18:33 -04:00
README.md v0.1.0 2014-03-21 13:21:04 -04:00
bower.json Bower v1.1.1 2014-03-28 13:17:11 -04:00
package.json 1.1.1 2014-03-28 13:17:15 -04:00

README.md

Web Literacy Client

This is a utility to map each version of the Web Literacy Map to a set of machine-readable tags.

The goal of this repository is to:

  • Store version history for the map with tags
  • Provide localized versions of each tag via Transifex
  • Provide translations for deprecated tags in older versions of the map by mapping them to new literacies
  • Provide support for applications using i18n that need to use the Web literacy Map

Creating a new version

  1. Edit src/weblitmap.json. Make sure you update the version number.
  2. Run npm install, and then grunt generate. This will create dist/weblitmap_strings.{{version}}.json, a Transifex-compatible file.
  3. Commit your changes and tag your release with npm version {{version}}.

Downloading new locales

  1. Run grunt build
  2. Your files will get downloaded from Transifex and dist/web-literacy-client.with-langs.js will be generated. Hurray!

Integrating the Web Literacy Map with your localized app

TODO: Including locale/ json files

Using the web literacy client in the browser

bower install web-literacy-client
var wlc = new WebLiteracyClient();
wlc.lang('fr');
wlc.all();
wlc.term(someTag);
wlc.description(someTag);

Using the web literacy client in node

npm install web-literacy-client
var WebLiteracyClient = require('web-literacy-client');
var wlc = new WebLiteracyClient();
wlc.lang('fr');
wlc.all();
wlc.term(someTag);
wlc.description(someTag);

Tests and Examples

bower install to install quint and example dependencies. See tests/ to run unit tests. See examples/ for a node and browser example.