aboutsummaryrefslogtreecommitdiffstats
path: root/resources/lib/moment/locale/km.js
diff options
context:
space:
mode:
authorpaladox <thomasmulhall410@yahoo.com>2014-09-06 12:54:30 +0000
committerTimo Tijhof <krinklemail@gmail.com>2014-09-08 01:20:31 +0200
commit43f46b6c92aaaee0678d6516e799aa8717efda42 (patch)
tree12d89f45da18e81776916347f4ade4ba448f17b1 /resources/lib/moment/locale/km.js
parentd1b6cd35d4aa117c454994b4a7896fee8abf17d2 (diff)
downloadmediawikicore-43f46b6c92aaaee0678d6516e799aa8717efda42.tar.gz
mediawikicore-43f46b6c92aaaee0678d6516e799aa8717efda42.zip
Update Moment.js from 2.8.1 to 2.8.3
Project site * http://momentjs.com * https://github.com/moment/moment/ File source * https://github.com/moment/moment/tree/2.8.3 Changelog * https://github.com/moment/moment/blob/2.8.3/CHANGELOG.md Difference between 2.8.1 and 2.8.3 1.8.3 Bugfixes: * #1801 proper pluralization for Arabic * #1833 improve spm integration * #1871 fix zone bug caused by Firefox 24 * #1882 Use hh:mm in Czech * #1883 Fix 2.8.0 regression in duration as conversions * #1890 Faster travis builds * #1892 Faster isBefore/After/Same * #1848 Fix flaky month diffs * #1895 Fix 2.8.0 regression in moment.utc with format array * #1896 Support setting invalid instance locale (noop) * #1897 Support moment([str]) in addition to moment([int]) 1.8.2 Minor bugfixes: * #1874 use Object.prototype.hasOwnProperty instead of obj.hasOwnProperty (ie8 bug) * #1873 add duration#toString() * #1859 better month/weekday names in norwegian * #1812 meridiem parsing for greek * #1804 spanish del -> de * #1800 korean LT improvement Change-Id: I60595e8ea41e136c7afee12ad3702ecec6dd4aef
Diffstat (limited to 'resources/lib/moment/locale/km.js')
-rw-r--r--resources/lib/moment/locale/km.js55
1 files changed, 55 insertions, 0 deletions
diff --git a/resources/lib/moment/locale/km.js b/resources/lib/moment/locale/km.js
new file mode 100644
index 000000000000..9ba4888b7418
--- /dev/null
+++ b/resources/lib/moment/locale/km.js
@@ -0,0 +1,55 @@
+// moment.js locale configuration
+// locale : khmer (km)
+// author : Kruy Vanna : https://github.com/kruyvanna
+
+(function (factory) {
+ if (typeof define === 'function' && define.amd) {
+ define(['moment'], factory); // AMD
+ } else if (typeof exports === 'object') {
+ module.exports = factory(require('../moment')); // Node
+ } else {
+ factory(window.moment); // Browser global
+ }
+}(function (moment) {
+ return moment.defineLocale('km', {
+ months: 'មករា_កុម្ភៈ_មិនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),
+ monthsShort: 'មករា_កុម្ភៈ_មិនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),
+ weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
+ weekdaysShort: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
+ weekdaysMin: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
+ longDateFormat: {
+ LT: 'HH:mm',
+ L: 'DD/MM/YYYY',
+ LL: 'D MMMM YYYY',
+ LLL: 'D MMMM YYYY LT',
+ LLLL: 'dddd, D MMMM YYYY LT'
+ },
+ calendar: {
+ sameDay: '[ថ្ងៃនៈ ម៉ោង] LT',
+ nextDay: '[ស្អែក ម៉ោង] LT',
+ nextWeek: 'dddd [ម៉ោង] LT',
+ lastDay: '[ម្សិលមិញ ម៉ោង] LT',
+ lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',
+ sameElse: 'L'
+ },
+ relativeTime: {
+ future: '%sទៀត',
+ past: '%sមុន',
+ s: 'ប៉ុន្មានវិនាទី',
+ m: 'មួយនាទី',
+ mm: '%d នាទី',
+ h: 'មួយម៉ោង',
+ hh: '%d ម៉ោង',
+ d: 'មួយថ្ងៃ',
+ dd: '%d ថ្ងៃ',
+ M: 'មួយខែ',
+ MM: '%d ខែ',
+ y: 'មួយឆ្នាំ',
+ yy: '%d ឆ្នាំ'
+ },
+ week: {
+ dow: 1, // Monday is the first day of the week.
+ doy: 4 // The week that contains Jan 4th is the first week of the year.
+ }
+ });
+}));