INACTIVE - http://mzl.la/ghe-archive - Localized and versioned Web Literacy Map
Перейти к файлу
Kate Hudson e13761d821 ignore locale/ 2014-03-21 15:00:15 -04:00
dist js edits, example 2014-03-21 14:34:18 -04:00
example ignore locale/ 2014-03-21 15:00:15 -04:00
grunt updated version 2014-03-21 12:42:49 -04:00
src js 2014-03-21 14:33:57 -04:00
tests Tests, get all langs 2014-03-21 13:53:42 -04:00
.gitignore ignore locale/ 2014-03-21 15:00:15 -04:00
Gruntfile.js js 2014-03-21 14:33:57 -04:00
README.md v0.1.0 2014-03-21 13:21:04 -04:00
bower.json added tests 2014-03-21 11:49:16 -04:00
package.json package updates 2014-03-21 10:04:08 -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.