-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(datepicker): added Turkish locale support for datepicker
feat(datepicker): added Turkish locale support for datepicker
- Loading branch information
1 parent
fc0cd35
commit 9e4df47
Showing
3 changed files
with
61 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
// moment.js locale configuration | ||
// locale : Turkish [tr] | ||
// author : Umit Gündüz : https://github.com/umitgunduz | ||
|
||
import { LocaleData } from '../locale/locale.class'; | ||
|
||
|
||
export const tr: LocaleData = { | ||
abbr: 'tr', | ||
months: 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split( | ||
'_' | ||
), | ||
monthsShort: 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'), | ||
weekdays: 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split( | ||
'_' | ||
), | ||
weekdaysShort: 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'), | ||
weekdaysMin: 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'), | ||
longDateFormat: { | ||
LT: 'HH:mm', | ||
LTS: 'HH:mm:ss', | ||
L: 'DD.MM.YYYY', | ||
LL: 'D MMMM YYYY', | ||
LLL: 'D MMMM YYYY HH:mm', | ||
LLLL: 'dddd, D MMMM YYYY HH:mm' | ||
}, | ||
calendar: { | ||
sameDay: '[bugün saat] LT', | ||
nextDay: '[yarın saat] LT', | ||
nextWeek: '[haftaya] dddd [saat] LT', | ||
lastDay: '[dün] LT', | ||
lastWeek: '[geçen hafta] dddd [saat] LT', | ||
sameElse: 'L' | ||
}, | ||
relativeTime: { | ||
future : '%s sonra', | ||
past : '%s önce', | ||
s : 'birkaç saniye', | ||
m : 'bir dakika', | ||
mm : '%d dakika', | ||
h : 'bir saat', | ||
hh : '%d saat', | ||
d : 'bir gün', | ||
dd : '%d gün', | ||
M : 'bir ay', | ||
MM : '%d ay', | ||
y : 'bir yıl', | ||
yy : '%d yıl' | ||
}, | ||
dayOfMonthOrdinalParse: /\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/, | ||
ordinal(num: number, token?: string): string { | ||
return `${num}.`; | ||
}, | ||
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. | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters