Skip to content

Commit 1ac03de

Browse files
authored
fix: missing cellMeridiemFormat in all locales (#842)
* fix: missing cellMeridiemFormat in all locales * fix: missing cellMeridiemFormat in all locales * fix: missing cellMeridiemFormat in all locales * fix: missing cellMeridiemFormat in all locales * fix: missing cellMeridiemFormat in all locales * fix: missing cellMeridiemFormat in all locales
1 parent 04b3232 commit 1ac03de

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+398
-292
lines changed

.fatherrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ import { defineConfig } from 'father';
22

33
export default defineConfig({
44
plugins: ['@rc-component/father-plugin'],
5-
});
5+
});

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npx lint-staged

.lintstagedrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"*": ["prettier --ignore-unknown --write"]
3+
}

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
> It has not been updated for a long time and will be maintained from now on. More in [releases](https://github.com/react-component/picker/releases).
2828
2929
---
30+
3031
## 0.6.0
3132

3233
- support `maxColumnsPerRow`.

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
# rc-picker
22

3-
[![NPM version][npm-image]][npm-url]
4-
[![build status][github-actions-image]][github-actions-url]
5-
[![Codecov][codecov-image]][codecov-url]
6-
[![npm download][download-image]][download-url]
7-
[![bundle size][bundlephobia-image]][bundlephobia-url]
3+
[![NPM version][npm-image]][npm-url] [![build status][github-actions-image]][github-actions-url] [![Codecov][codecov-image]][codecov-url] [![npm download][download-image]][download-url] [![bundle size][bundlephobia-image]][bundlephobia-url]
84

95
[npm-image]: http://img.shields.io/npm/v/rc-picker.svg?style=flat-square
106
[npm-url]: http://npmjs.org/package/rc-picker
@@ -106,7 +102,7 @@ render(<Picker />, mountNode);
106102
### RangePicker
107103

108104
| Property | Type | Default | Description |
109-
| --- | --- | --- | --- |
105+
| --- | --- | --- | --- | --- |
110106
| prefixCls | String | rc-picker | prefixCls of this component |
111107
| className | String | '' | additional css class of root dom |
112108
| style | React.CSSProperties | | additional style of root dom node |

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
"prettier": "prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"",
3636
"test": "rc-test",
3737
"coverage": "father test --coverage",
38-
"now-build": "npm run build"
38+
"now-build": "npm run build",
39+
"prepare": "npx husky"
3940
},
4041
"dependencies": {
4142
"@babel/runtime": "^7.24.7",
@@ -62,13 +63,15 @@
6263
"dayjs": "1.x",
6364
"dumi": "^2.1.15",
6465
"eslint": "^8.56.0",
66+
"eslint-plugin-eslint-comments": "^3.2.0",
6567
"eslint-plugin-jest": "^27.6.0",
66-
"eslint-plugin-unicorn": "^54.0.0",
6768
"eslint-plugin-react-hooks": "^4.6.0",
68-
"eslint-plugin-eslint-comments": "^3.2.0",
69+
"eslint-plugin-unicorn": "^54.0.0",
6970
"father": "^4.0.0",
7071
"glob": "^10.4.1",
72+
"husky": "^9.0.11",
7173
"less": "^4.2.0",
74+
"lint-staged": "^15.2.7",
7275
"luxon": "3.x",
7376
"mockdate": "^3.0.2",
7477
"moment": "^2.24.0",

src/locale/ar_EG.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
import { commonLocale } from './common';
12
import type { Locale } from '../interface';
23

34
const locale: Locale = {
5+
...commonLocale,
46
locale: 'ar_EG',
57
today: 'اليوم',
68
now: 'الأن',
@@ -14,11 +16,8 @@ const locale: Locale = {
1416
monthSelect: 'اختيار الشهر',
1517
yearSelect: 'اختيار السنة',
1618
decadeSelect: 'اختيار العقد',
17-
yearFormat: 'YYYY',
1819
dateFormat: 'M/D/YYYY',
19-
dayFormat: 'D',
2020
dateTimeFormat: 'M/D/YYYY HH:mm:ss',
21-
monthBeforeYear: true,
2221
previousMonth: 'الشهر السابق (PageUp)',
2322
nextMonth: 'الشهر التالى(PageDown)',
2423
previousYear: 'العام السابق (Control + left)',

src/locale/az_AZ.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
import { commonLocale } from './common';
12
import type { Locale } from '../interface';
23

34
const locale: Locale = {
5+
...commonLocale,
46
locale: 'az_AZ',
57
today: 'Bugün',
68
now: 'İndi',
@@ -15,11 +17,8 @@ const locale: Locale = {
1517
monthSelect: 'Ay seç',
1618
yearSelect: 'il seç',
1719
decadeSelect: 'Onillik seçin',
18-
yearFormat: 'YYYY',
1920
dateFormat: 'D.M.YYYY',
20-
dayFormat: 'D',
2121
dateTimeFormat: 'D.M.YYYY HH:mm:ss',
22-
monthBeforeYear: true,
2322
previousMonth: 'Əvvəlki ay (PageUp)',
2423
nextMonth: 'Növbəti ay (PageDown)',
2524
previousYear: 'Sonuncu il (Control + left)',

src/locale/bg_BG.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
import { commonLocale } from './common';
12
import type { Locale } from '../interface';
23

34
const locale: Locale = {
5+
...commonLocale,
46
locale: 'bg_BG',
57
today: 'Днес',
68
now: 'Сега',
@@ -14,11 +16,8 @@ const locale: Locale = {
1416
monthSelect: 'Избор на месец',
1517
yearSelect: 'Избор на година',
1618
decadeSelect: 'Десетилетие',
17-
yearFormat: 'YYYY',
1819
dateFormat: 'D M YYYY',
19-
dayFormat: 'D',
2020
dateTimeFormat: 'D M YYYY HH:mm:ss',
21-
monthBeforeYear: true,
2221
previousMonth: 'Предишен месец (PageUp)',
2322
nextMonth: 'Следващ месец (PageDown)',
2423
previousYear: 'Последна година (Control + left)',

src/locale/bn_BD.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
import { commonLocale } from './common';
12
import type { Locale } from '../interface';
23

34
const locale: Locale = {
5+
...commonLocale,
46
locale: 'bn_BD',
57
today: 'আজ',
68
now: 'এখন',
@@ -15,11 +17,8 @@ const locale: Locale = {
1517
monthSelect: 'মাস পছন্দ করুন',
1618
yearSelect: 'বছর পছন্দ করুন',
1719
decadeSelect: 'একটি দশক পছন্দ করুন',
18-
yearFormat: 'YYYY',
1920
dateFormat: 'M/D/YYYY',
20-
dayFormat: 'D',
2121
dateTimeFormat: 'D/M/YYYY HH:mm:ss',
22-
monthBeforeYear: true,
2322
previousMonth: 'গত মাস (PageUp)',
2423
nextMonth: 'আগামী মাস (PageDown)',
2524
previousYear: 'গত বছর (Control + left)',

0 commit comments

Comments
 (0)