timrwood/moment — pull request #460 by timrwood (2012-10-05 22:35:43+00:00)
Title: Language cleanup

This is a bit of a restructure, so I thought I would add it as a PR so that other people can comment.

Basically, instead of having to handle callbacks vs array vs strings all throughout the codebase, we can now call a consistent callback function on a `Language` object.

When setting language config options, if the option is a function, it will replace the prototype function, otherwise, it will replace the data object that the prototype function uses. [See these lines](https://github.com/timrwood/moment/commit/03d8e7f5319e291ea63685c965100e8e725d50f3#L0R199).