meteor-messageformat icon indicating copy to clipboard operation
meteor-messageformat copied to clipboard

[v2] Exception while invoking mfStrings/insert: no translations get saved

Open ttasovac opened this issue 10 years ago • 0 comments

Hi.

I'm using the latest v2 previews:

msgfmt:[email protected] (2015-12-23) msgfmt:[email protected] msgfmt:[email protected]

I have created some strings in the appropriate {{mf}} format and msgfmt:extract has recognized them automatically. However, when I create a new language in the UI, and when I translate the strings, they do not get saved. Instead, I am getting this:

I20160105-07:12:20.904(1)? Exception while invoking method '/mfStrings/insert' Error: Meteor.userId can only be invoked in method calls. Use this.userId in publish functions.
I20160105-07:12:20.905(1)?     at AccountsServer.userId (accounts_server.js:80:13)
I20160105-07:12:20.905(1)?     at Object.Meteor.userId (accounts_common.js:222:19)
I20160105-07:12:20.905(1)?     at mfPkg.webUI.allowFuncs (packages/msgfmt_ui/lib/common.js:2:1)
I20160105-07:12:20.905(1)?     at packages/msgfmt_ui/lib/common.js:9:1
I20160105-07:12:20.906(1)?     at Array.some (native)
I20160105-07:12:20.906(1)?     at Function._.some._.any (packages/underscore/underscore.js:233:1)
I20160105-07:12:20.906(1)?     at mfPkg.webUI.allowed (packages/msgfmt_ui/lib/common.js:8:1)
I20160105-07:12:20.906(1)?     at packages/mongo/collection.js:983:1
I20160105-07:12:20.906(1)?     at Array.every (native)
I20160105-07:12:20.907(1)?     at Function._.every._.all (packages/underscore/underscore.js:219:1)

This happens regardless of whether I am logged in or not.

All best, Toma

ttasovac avatar Jan 05 '16 06:01 ttasovac