catberry / catberry-l10n

Localization module for catberry framework
https://catberry.github.io/
Other
3 stars 1 forks source link

Add moment.js library and helper for data formatting #4

Closed rdner closed 9 years ago

rdner commented 10 years ago

Need to include https://github.com/moment/moment library as a part of catberry-l10n for formatting dates.

Also when user loads /l10n.js moment language formatting settings also should be loaded.

And add helper like this:

{@l10nMoment date="Wed Jun 18 2014 13:08:22 GMT+0700 (NOVT)" format="LL"}

All moment formats from this list should be supported.

rdner commented 9 years ago

It would be better not include this functionality into catberry-l10n plugin.