universe:i18n-blaze

v1.5.1Published 8 years ago

This package has not had recent updates. Please investigate it's current state before committing to using it in your project.

[Deprecated] This project will be no longer maintained. Blaze integration was moved to the main package - meteor-universe-i18n.

 

Provides translation helper and global variable __ that are reactive ( in Meteor way )

Example (full path)

{{__ 'tools.ok'}}

Example relative path

Register namespace in template:

1Template.myTemplate.bindI18nNamespace('tools');
2
1<template name='myTemplate'>
2    <span>{{__ '.ok'}}</span>
3</template>

Namespaces are inherited from parents, so children have parents namespace (if they have not own namespace.)

License

Like every package maintained by Vazco, Universe i18n Blaze is MIT licensed.