mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 13:51:18 +08:00
Upgrade moment.js to latest version, add missing locales now that we
support more languages.
This commit is contained in:
55
lib/javascripts/moment_locale/km.js
Normal file
55
lib/javascripts/moment_locale/km.js
Normal file
@ -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.
|
||||
}
|
||||
});
|
||||
}));
|
Reference in New Issue
Block a user