Open aviavia opened 7 years ago
any comment anyone? Thanks.
Hey @aviavia. Do you think this is the same as #249? I think the simplest way for now is to just add msgfmt.setLocale('he')
in the client code (you could probably do it right after msgfmt.init
).
Great, thanks, I'll give it a try.
I get this error: msgfmt.setLocale is not a function.
Oh, I guess if you're doing it straight after msgfmt.init()
, you probably have that in an isomorphic file, so you'd need some extra code to keep it just on the client, i.e.
if (Meteor.isClient)
msgfmt.setLocale('he');
Cool, now it's working. Will check tomorrow if it's ok inside cordova....Thanks!
Great!
Hi, currently the translation looks for logged in users, the "locale" value at the users collection and translates according to it. How do I force it to display only Hebrew? My settings at the moment are: //config.js msgfmt.init('en', { sendPolicy: 'current' }); //settings.json "msgfmt": { "native": "en", "locales": ["he"], "logLevel": "debug" } Thanks, Avi.