Monday, March 25, 2013

Re: momentgwt - a GWT wrapper library for

forgot to impact that little fix in the .jar. Sorry.

On Monday, March 25, 2013 9:17:45 PM UTC-3, Mohammad Al-Quraian wrote:
Thanks for your replies, I really appreciate that.
There's an issue with your code, I'm not sure if it's a bug or not.

It gives me this error: (ReferenceError);Ljava/lang/Object;Ljava/lang/Object;)([JavaScript object(7), JavaScript object(5), JavaScript object(13)]): langDef is not defined

It works if I changed it to:
Moment.lang("es", null);

On Monday, March 25, 2013 9:00:38 PM UTC+3, Sebastián Gurin wrote:
yes is it possible. Take a look at for seeing how momentjs support internationalization (you must load an extra .js with the desired "language definitions"). YOu can find all the locales files here:

I just made an example on how to do this using momentgwt:

Hope that helps

On Monday, March 25, 2013 2:11:45 PM UTC-3, Mohammad Al-Quraian wrote:
Thanks for the fix, do you know how can I change the locale/language (if that's possible)?
Or if it's possible to adopt to the locale of the browser?


On Monday, March 25, 2013 7:09:09 PM UTC+3, Sebastián Gurin wrote:
Problem fixed. That .jar contains 2 projects inside: momentgwt and gwtjsutil - (an utility library of mine for easier javascript wrapper libraries development). Jar replaced. Sorry for the inconvenience

On Sunday, March 24, 2013 3:43:10 PM UTC-3, Mohammad Al-Quraian wrote:
When I tried to use the example:
Moment.moment().add(2, "days").format("MMMM Do YYYY, h:mm:ss a")

After inheriting the required module and including the jar, it gives me this error:
The type org.sgx.jsutil.client.JsObject cannot be resolved. It is indirectly referenced from required .class files

On Thursday, March 21, 2013 10:22:15 PM UTC+3, Sebastián Gurin wrote:
I just released a GWT wrapper for the nice JavaScript library momentjs ( It resulted on a small and easy to use alternative for working with dates, calendars, intervals, date formats, date internationalization, etc.

Hope it can be of help to somebody working with dates, calendars, etc.

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment