djhi / meteor-simpleschema-tapi18n-labels

Allows to useTapi18n for SimpleSchema labels
0 stars 0 forks source link

Meteor SimpleSchema Tapi18n labels

Allows to use Tapi18n for simple-schema labels

Installation

meteor add gildaspk:simpleschema-tapi18n-labels

Usage

Simply use the i18nLabel property on your schema:

var mySchema = new SimpleSchema({
  myProperty: {
    type: String,
    i18nLabel: 'myPropertyKey'
  }
});

Refer to the Tapi18n documentation to learn how to specify translations, etc.