owltech
Version:
This a backend for OwlTech Company
28 lines (24 loc) • 1.04 kB
JavaScript
/**
* @preserve date-and-time.js locale configuration
* @preserve Turkish (tr)
* @preserve It is using moment.js locale configuration as a reference.
*/
(function (global) {
'use strict';
var locale = function (date) {
date.setLocales('tr', {
MMMM: ['Ocak', 'Şubat', 'Mart', 'Nisan', 'Mayıs', 'Haziran', 'Temmuz', 'Ağustos', 'Eylül', 'Ekim', 'Kasım', 'Aralık'],
MMM: ['Oca', 'Şub', 'Mar', 'Nis', 'May', 'Haz', 'Tem', 'Ağu', 'Eyl', 'Eki', 'Kas', 'Ara'],
dddd: ['Pazar', 'Pazartesi', 'Salı', 'Çarşamba', 'Perşembe', 'Cuma', 'Cumartesi'],
ddd: ['Paz', 'Pts', 'Sal', 'Çar', 'Per', 'Cum', 'Cts'],
dd: ['Pz', 'Pt', 'Sa', 'Ça', 'Pe', 'Cu', 'Ct']
});
};
if (typeof module === 'object' && typeof module.exports === 'object') {
locale(require('../date-and-time'));
} else if (typeof define === 'function' && define.amd) {
define(['date-and-time'], locale);
} else {
locale(global.date);
}
}(this));