TAPevents / tap-i18n-db

MIT License
51 stars 17 forks source link

i18nFind() does not work in publication #9

Closed Elfoslav closed 9 years ago

Elfoslav commented 9 years ago

I define collection Persons:

Persons = new TAPi18n.Collection("persons");

I have publication on the server:

TAPi18n.publish("persons", function () {
  return Persons.i18nFind();
});

And subscription on the client:

TAPi18n.subscribe('persons', function(err) {
  console.log('subscr persons: ', err);
});

If I use i18nFind() in publish, I get following error:

screenshot from 2014-12-10 23 10 56

If I use find(), there is no error but translation does not work after changing language.

Tested with Meteor 1.0.1 and 0.9.4

Here is example app: https://github.com/Elfoslav/tap-i18n-example

Elfoslav commented 9 years ago

Added project-tap.i18n file with supported languages in root of my project and everything is ok.

theosp commented 9 years ago

Thanks for the update!

-Daniel

MeteorSpark http://www.MeteorSpark.com http://www.meteorspark.com/

On Sun, Feb 1, 2015 at 4:47 AM, Tomáš Hromník notifications@github.com wrote:

Closed #9 https://github.com/TAPevents/tap-i18n-db/issues/9.

— Reply to this email directly or view it on GitHub https://github.com/TAPevents/tap-i18n-db/issues/9#event-228038321.