META-INF.resources.bower_components.globalize-languages.th.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jwebmp-globalize Show documentation
Show all versions of jwebmp-globalize Show documentation
The JWebSwing implementation for a full Globalization
(function ($) {
var cultures = Globalize.cultures,
en = cultures.en,
standard = en.calendars.standard,
culture = cultures["th"] = $.extend(true, {}, en, {
name: "th",
englishName: "Thai",
nativeName: "ไทย",
language: "th",
numberFormat: {
currency: {
pattern: ["-$n", "$n"],
symbol: "฿"
}
},
calendars: {
standard: $.extend(true, {}, standard, {
name: "ThaiBuddhist",
firstDay: 1,
days: {
names: ["อาทิตย์", "จันทร์", "อังคาร", "พุธ", "พฤหัสบดี", "ศุกร์", "เสาร์"],
namesAbbr: ["อา.", "จ.", "อ.", "พ.", "พฤ.", "ศ.", "ส."],
namesShort: ["อ", "จ", "อ", "พ", "พ", "ศ", "ส"]
},
months: {
names: ["มกราคม", "กุมภาพันธ์", "มีนาคม", "เมษายน", "พฤษภาคม", "มิถุนายน", "กรกฎาคม", "สิงหาคม", "กันยายน", "ตุลาคม", "พฤศจิกายน", "ธันวาคม", ""],
namesAbbr: ["ม.ค.", "ก.พ.", "มี.ค.", "เม.ย.", "พ.ค.", "มิ.ย.", "ก.ค.", "ส.ค.", "ก.ย.", "ต.ค.", "พ.ย.", "ธ.ค.", ""]
},
eras: [{"name": "พ.ศ.", "start": null, "offset": -543}],
twoDigitYearMax: 2572,
patterns: {
d: "d/M/yyyy",
D: "d MMMM yyyy",
t: "H:mm",
T: "H:mm:ss",
f: "d MMMM yyyy H:mm",
F: "d MMMM yyyy H:mm:ss",
M: "dd MMMM",
Y: "MMMM yyyy"
}
}),
Gregorian_Localized: $.extend(true, {}, standard, {
firstDay: 1,
days: {
names: ["อาทิตย์", "จันทร์", "อังคาร", "พุธ", "พฤหัสบดี", "ศุกร์", "เสาร์"],
namesAbbr: ["อา.", "จ.", "อ.", "พ.", "พฤ.", "ศ.", "ส."],
namesShort: ["อ", "จ", "อ", "พ", "พ", "ศ", "ส"]
},
months: {
names: ["มกราคม", "กุมภาพันธ์", "มีนาคม", "เมษายน", "พฤษภาคม", "มิถุนายน", "กรกฎาคม", "สิงหาคม", "กันยายน", "ตุลาคม", "พฤศจิกายน", "ธันวาคม", ""],
namesAbbr: ["ม.ค.", "ก.พ.", "มี.ค.", "เม.ย.", "พ.ค.", "มิ.ย.", "ก.ค.", "ส.ค.", "ก.ย.", "ต.ค.", "พ.ย.", "ธ.ค.", ""]
},
patterns: {
d: "d/M/yyyy",
D: "'วัน'dddd'ที่' d MMMM yyyy",
t: "H:mm",
T: "H:mm:ss",
f: "'วัน'dddd'ที่' d MMMM yyyy H:mm",
F: "'วัน'dddd'ที่' d MMMM yyyy H:mm:ss",
M: "dd MMMM",
Y: "MMMM yyyy"
}
})
}
}, cultures["th"]);
culture.calendar = culture.calendars.standard;
})(jQuery);