extended translating
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 15 commits ahead of Swatinem:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
test
.gitignore
.jshintrc
.npmignore
.travis.yml
Makefile
README.md
component.json
index.js
package.json

README.md

t

extended translating

Build Status Coverage Status Dependency Status

Installation

$ component install Swatinem/t

Usage

This inherits from component/t but extends it with some useful utilities to handle multiple languages. Also handles inheritance.

t.definition(code)

Returns the definition of a language.

{
	"code": "de-at",
	"language": "Deutsch (Österreich)",
	"inherits": "de"
}

t.definition(object)

Creates a new language definition, takes care of inheritance. See above for example.

t.merge(code, object)

Merges the strings given in object to the ones already defined in language code.

License

LGPLv3