       Languages
   ###
 
-  lang =
+  extend moment.langData().__proto__,
     _jMonths: [
       'Farvardin'
       'Ordibehesht'

    gy: gy
    march: march

  # Converts a date of the Jalaali calendar to the Julian Day number.
  #
  # @param jy Jalaali year (1 to 3100)
  # @param jm Jalaali month (1 to 12)
  # @param jd Jalaali day (1 to 29/31)
  # @return Julian Day number
  j2d = (jy, jm, jd) ->
    {leap, gy, march} = jalCal jy
    g2d(gy, 3, march) + (jm - 1) * 31 - div(jm, 7) * (jm - 7) + jd - 1

  # Converts the Julian Day number to a date in the Jalaali calendar.
  #
  # @param jdn Julian Day number
  # @return
  #   jy: Jalaali year (1 to 3100)
  #   jm: Jalaali month (1 to 12)
  #   jd: Jalaali day (1 to 29/31)
  d2j = (jdn) ->
    # Calculate Gregorian year (gy).
    {gy} = d2g jdn

      array[i] = '[' + match + ']'
    array.join ''

  ###
    Get the regex to find the next token.
  ###
  getParseRegexForToken = (token, config) ->
    switch token
      when 'jDDDD' then parseTokenThreeDigits
