Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/djhi/meteor-simpleschema-tapi18n-labels

Allows to useTapi18n for SimpleSchema labels
https://github.com/djhi/meteor-simpleschema-tapi18n-labels

Last synced: 23 days ago
JSON representation

Allows to useTapi18n for SimpleSchema labels

Awesome Lists containing this project

README

        

Meteor SimpleSchema Tapi18n labels
=========================

Allows to use [Tapi18n](https://github.com/TAPevents/tap-i18n) for
[simple-schema](https://github.com/aldeed/meteor-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](https://github.com/TAPevents/tap-i18n) documentation to
learn how to specify translations, etc.