File tree 2 files changed +14
-3
lines changed
2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,17 @@ export default moment.defineLocale('tr', {
36
36
) ,
37
37
weekdaysShort : 'Paz_Pts_Sal_Çar_Per_Cum_Cts' . split ( '_' ) ,
38
38
weekdaysMin : 'Pz_Pt_Sa_Ça_Pe_Cu_Ct' . split ( '_' ) ,
39
+ meridiem : function ( hours , minutes , isLower ) {
40
+ if ( hours < 12 ) {
41
+ return isLower ? 'öö' : 'ÖÖ' ;
42
+ } else {
43
+ return isLower ? 'ös' : 'ÖS' ;
44
+ }
45
+ } ,
46
+ meridiemParse : / ö ö | Ö Ö | ö s | Ö S / ,
47
+ isPM : function ( input ) {
48
+ return input === 'ös' || input === 'ÖS' ;
49
+ } ,
39
50
longDateFormat : {
40
51
LT : 'HH:mm' ,
41
52
LTS : 'HH:mm:ss' ,
Original file line number Diff line number Diff line change @@ -49,9 +49,9 @@ test('format', function (assert) {
49
49
var a = [
50
50
[
51
51
'dddd, MMMM Do YYYY, h:mm:ss a' ,
52
- 'Pazar, Şubat 14 2010, 3:25:50 pm ' ,
52
+ 'Pazar, Şubat 14 2010, 3:25:50 ös ' ,
53
53
] ,
54
- [ 'ddd, hA' , 'Paz, 3PM ' ] ,
54
+ [ 'ddd, hA' , 'Paz, 3ÖS ' ] ,
55
55
[ 'M Mo MM MMMM MMM' , "2 2'nci 02 Şubat Şub" ] ,
56
56
[ 'YYYY YY' , '2010 10' ] ,
57
57
[ 'D Do DD' , '14 14 14' ] ,
@@ -62,7 +62,7 @@ test('format', function (assert) {
62
62
[ 'H HH' , '15 15' ] ,
63
63
[ 'm mm' , '25 25' ] ,
64
64
[ 's ss' , '50 50' ] ,
65
- [ 'a A' , 'pm PM ' ] ,
65
+ [ 'a A' , 'ös ÖS ' ] ,
66
66
[ '[yılın] DDDo [günü]' , "yılın 45'inci günü" ] ,
67
67
[ 'LTS' , '15:25:50' ] ,
68
68
[ 'L' , '14.02.2010' ] ,
You can’t perform that action at this time.
0 commit comments