Languages and locales now with support:
* bm
* de-ch
* gom-latn
* gu
* kn
* sd
* tet
* ur
* uz-latn
* yo
Skipped languages because we don't support them in MW:
* ar-dz
* ar-kw
* ar-ly
* en-ie
* en-nz
* es-do
* es-us
* fr-ch
* me
* nl-be
* tlh
* tzl
Also drop 'x-pseudo' which was included but not used.
Bug: T161732
Bug: T181547
Change-Id: I7f89569c6ee6640d368af1378e84c5a9e725dad0
Languages and locales now with support:
* aeb-arab
* dv
* fy
* gd
* jv
* kk-cyrl
* ky
* lo
* ms
* pa
* se
* si
* ss
* sw
* te
* zh-hk
Skipped languages because we don't support them in MW:
* ar-ly
* en-ie
* en-nz
* es-do
* fr-ch
* me
* tlh
* tzl
Change-Id: I7f89569c6ee6640d368af1378e84c5a9e725da0d
If there is an element with id="global" on the page,
typeof global !== 'undefined' is true, but global.moment will
still be undefined and shouldn't be used.
For now, comment out the wrapper and just use 'this'.
We should look into upgrading to momentjs 2.14 where this bug is fixed.
Bug: T145382
Change-Id: Ia6e3b46e42248a5ee3c61c5fcda7d020d012e89e
Project site
* http://momentjs.com
* https://github.com/moment/moment/
File source
* https://github.com/moment/moment/tree/2.8.4
Changelog
* https://github.com/moment/moment/blob/2.8.4/CHANGELOG.md
Difference between 2.8.3 and 2.8.4
2.8.4
Features
* #2000 Add LTS localised format that includes seconds
* #1960 added formatToken 'x' for unix offset in milliseconds #1938
* #1965 Support 24:00:00.000 to mean next day, at midnight.
* #2002 Accept 'date' key when creating moment with object
* #2009 Use native toISOString when we can
Bugfixes
* #2004 Fix makeAs to work with zoned moments
* #2001 moment.utc(string) falling back to Date works properly
* #1928 IE11 module == null
* #1952 New implementation of isBefore/isSame/isAfter
* #1992 Fix strict month parsing of abbreviated/full months
* #2003 Detect hours above 12 with h/hh tokens
* #1974 Locale export for meteor server environment
* #1925 Fix duration as getters (years and months convert to whole days)
* #2008 Fix endOf handling of no-arg and ms
* #2010 Update deprecation warning for moment().lang()
Locale improvements
* #2015 remove Uhr from german format
* #1933 improved russian lastWeek translations
* #2013 changed month abbreviations in russian
* #1971 Fix italian calendar time
* #1967 Fix catalan ordinals
* #1898 Bosnian translation of August
* #1771 Update greek seconds string
* #1961 Add a script to prepare moment for npm publish
* #2016 Fix long date format for Czech
Change-Id: I136a08194476ac01af7495c8f8e1e7ea1e140973
Project site
* http://momentjs.com/ and https://github.com/moment/moment/
File source
* https://github.com/moment/moment/blob/2.8.1/moment.js
README
* https://github.com/moment/moment/blob/2.8.1/readme.md
Changelog
1.8.0 changelog
* https://gist.github.com/ichernev/ac3899324a5fa6c8c9b4
1.8.1 changelog
* https://github.com/moment/moment/blob/2.8.1/CHANGELOG.md
difference between 2.7.0 and 2.8.1
incompatible changes
* #1761: moments created without a language are no longer following the global language, in case it changes. Only newly created moments take the global language by default. In case you're affected by this, wait, comment on #1797 and wait for a proper reimplementation
* #1642: 45 days is no longer "a month" according to humanize, cutoffs for month, and year have changed. Hopefully your code does not depend on a particular answer from humanize (which it shouldn't anyway)
* #1784: if you use the human readable English datetime format in a weird way (like storing them in a database) that would break when the format changes you're at risk.
* #1785 moment.momentProperties is now an array of properties instead of a hash. If you have a plugin that uses it to make sure cloned moments will retain the plugin-added properties you need to change your code.
deprecations (old behavior will be dropped in 3.0)
* #1761 lang is renamed to locale , langData -> localeData . Also there is now defineLocale that should be used when creating new locales
* #1763 add(unit, value) and subtract(unit, value) are now deprecated. Use add(value, unit) and subtract(value, unit) instead.
* #1759 rename duration.toIsoString to duration.toISOString . The js standard library and moment's toISOString follow that convention.
new locales
* #1789 Tibetan (bo)
* #1786 Africaans (af)
* #1778 Burmese (my)
* #1727 Belarusian (be)
bugfixes
* #1738 local to zone conversion with keepLocalTime=true
* #1642 more accurate humanize
performance
* #1808 speedup cloning 49x
* #1708 speedup creation with Date object
features
*#1716 moment.relativeTimeThreshold now supports getting the existing threshold
locale bugfix
* #1784 add comma between day-of-month and year in us-en
* #1710 fix lithuanian month name
2.8.1
* bugfix #1813: fix moment().lang([key]) incompatibility
Change-Id: Iaffaaa18e08773f8f36e83e918e61a2259f1e2e3
Project site
* http://momentjs.com/ and https://github.com/moment/moment/
File source
* https://github.com/moment/moment/blob/2.7.0/moment.js
README
* https://github.com/moment/moment/blob/2.7.0/readme.md
Changelog
https://gist.github.com/ichernev/b0a3d456d5a84c9901d7
difference between 2.6.0 and 2.7.0
new languages
• #1678 Bengali (bn)
• #1628 Azerbaijani (az)
• #1633 Arabic, Saudi Arabia (ar-sa)
• #1648 Austrian German (de-at)
features
• #1663 configurable relative time thresholds
• #1554 support anchor time in moment.calendar
• #1693 support moment.ISO_8601 as parsing format
• #1637 add moment.min and moment.max and deprecate min/max instance methods
• #1704 support string value in add/subtract
• #1647 add spm support (package manager)
bugfixes
• #1651fixes#1627 fix timezone parsing in some edge cases
• #1641fixes#1626 fix creation from week/weekday/weekyear for weeks starting monday
• #1616 fix language code of cyrillic Serbian (sr-cyrl) and latin Tamazight (tzm-latn)
language bugfixes
• #1699fixes#1326 use lowercase months in Italian
• #1650 partly fixes#1640 implement meridiem parsing for Russian
• #1673 fix lithuanian weekday names for weeks not starting Monday
• #1433 Better "time ago" expression for European Portuguese
• #1671 Improve welsh past expressions
• #1449 Use dot after the day number in Danish
• #1559 Update arabic numbers, meridiem and short weekdays
• #1622 Fix previous Saturday in Greek
tests
• #1687 fixed flaky test in Russian timezone
Change-Id: If8e065bf9e0962059697e6f08100e7bc966cd32f