Skip to content

Instantly share code, notes, and snippets.

View omidkrad's full-sized avatar

Omid K. Rad omidkrad

  • SF Bay Area
View GitHub Profile
@omidkrad
omidkrad / moment.lang.fa.js
Created December 18, 2012 00:13
Persian language localization settings for momentjs.
// moment.js language configuration
// language : persian (fa)
// author : Omid K. Rad : https://github.com/omidkrad
(function () {
// Notes: Persian culture specs are taken from: http://pastehtml.com/view/clt3qjk84.html
// The document is old but the data is valid. Use RTL embedding for correct formatting.
// Month names are transliterated French from Gregorian calendar. For dates based on Persian
// calendar, see this related project: http://intldate.codeplex.com
var lang = {
months: "ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اُکتبر_نوامبر_دسامبر".split("_"),