Skip to content

/translate not working. #222

Open
Open
@cryptoboy

Description

@cryptoboy

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.

$ meteor list | grep msg
msgfmt:core              2.0.0-preview.21  MessageFormat i18n support, the Me...
msgfmt:extract           2.0.1  Extracts native / translatable strings from y...
msgfmt:ui-dev-only       2.0.4  msgfmt-ui that is never deployed

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:

extracts.msgfmt
extracts.msgfmt~

However I don't see mfAll.js - is that generated after successfully hitting the /translate?

UPDATE 2:

In case it is version specific:

$ meteor --version
Meteor 1.3.2.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions