File tree 2 files changed +27
-7
lines changed
2 files changed +27
-7
lines changed Original file line number Diff line number Diff line change 1
1
// Kurdish [ku]
2
2
import dayjs from 'dayjs'
3
- import {
4
- englishToArabicNumbersMap ,
5
- arabicToEnglishNumbersMap
6
- } from '../constant'
3
+
4
+ export const englishToArabicNumbersMap = {
5
+ 1 : '١' ,
6
+ 2 : '٢' ,
7
+ 3 : '٣' ,
8
+ 4 : '٤' ,
9
+ 5 : '٥' ,
10
+ 6 : '٦' ,
11
+ 7 : '٧' ,
12
+ 8 : '٨' ,
13
+ 9 : '٩' ,
14
+ 0 : '٠'
15
+ }
16
+
17
+ const arabicToEnglishNumbersMap = {
18
+ '١' : '1' ,
19
+ '٢' : '2' ,
20
+ '٣' : '3' ,
21
+ '٤' : '4' ,
22
+ '٥' : '5' ,
23
+ '٦' : '6' ,
24
+ '٧' : '7' ,
25
+ '٨' : '8' ,
26
+ '٩' : '9' ,
27
+ '٠' : '0'
28
+ }
7
29
8
30
const months = [
9
31
'کانوونی دووەم' ,
@@ -68,4 +90,3 @@ const locale = {
68
90
dayjs . locale ( locale , null , true )
69
91
70
92
export default locale
71
-
Original file line number Diff line number Diff line change 1
1
import moment from 'moment'
2
2
import MockDate from 'mockdate'
3
3
import dayjs from '../../src'
4
- import locale from '../../src/locale/ku'
4
+ import locale , { englishToArabicNumbersMap } from '../../src/locale/ku'
5
5
import preParsePostFormat from '../../src/plugin/preParsePostFormat'
6
- import { englishToArabicNumbersMap } from '../../src/constant'
7
6
8
7
dayjs . extend ( preParsePostFormat )
9
8
You can’t perform that action at this time.
0 commit comments