0.1.0 • Published 9 years ago

ims-casa v0.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

ims-casa

This library eases the translation of casa entities. more info on casa here

var casa = require('ims-casa');
casa.translate(customProperties)(entity)

A call to casa.translate() will return a function that translates an entity. This comes in handy when you have a list of entities that you'd like to translate, for example:

var entities = [];
var translatedEntities = entities.map(casa.translate());

As it's first parameter, casa.translate accepts a map of custom guids that will be used in translation.

The translator will translate:

to: