]> git.ipfire.org Git - thirdparty/moment.git/commit
Added support for functions in addition to strings in the relativeTime object.
authorRafał Hirsz <hirszdesign@gmail.com>
Sat, 12 Nov 2011 13:47:22 +0000 (14:47 +0100)
committerRafał Hirsz <hirszdesign@gmail.com>
Sat, 12 Nov 2011 13:47:22 +0000 (14:47 +0100)
commitd5bed4083f2a34f74c8a3f1ecd1d3873a878f98f
tree358b8afed6198500458d49eb30b9bf44d16567ec
parent1f42ebc92ecd4c8042a9364b6a8bf2cb4aefc93c
Added support for functions in addition to strings in the relativeTime object.

The functions should take a single number as an argument and return the correct string for it.
This should provide better support for languages with more complex declension and plural forms (like Polish).
lang/pl.js
lang/test/pl.js
moment.js
sitesrc/docs.jade