Open cryptoboy opened 8 years ago
Solved. Obviously without installing iron:router it doesn't work.
I would add this in the instructions somewhere for people just starting out:
meteor add iron:router
Sorry for the pain, hopefully writing the v2 docs next week. Leaving this open so I don't forget. Should work fine with flow-router too... were you using any router?
(will answer properly next week, i'm away for the weekend)
@cryptoboy what router are you using, btw?
Sorry for the delay - I am actually pretty much new to Meteor, so I was trying both the translation system and Meteor at the same time. So yeah, I didn't have a router, just some default basic app. :)
Are you considering React-Router any time soon?
Added lib/common.js with the only line:
msgfmt.init('en');
Using the new version - fresh project with just 1 sample message in the HTML.
I also had to do
meteor remove autopublish
due to some warning messages when running locally.Finally - app is running, but when I go to http://localhost:3000/translate I just seem to get the main page. (Is this a routing issue? i.e. the default meteor app is catching all routes and not letting msgfmt do its magic?)
UPDATE:
I should also mention that 2 files were generated under server:
However I don't see mfAll.js - is that generated after successfully hitting the /translate?
UPDATE 2:
In case it is version specific: