File tree Expand file tree Collapse file tree 2 files changed +46
-7
lines changed Expand file tree Collapse file tree 2 files changed +46
-7
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @shefing/authors-info" ,
3
- "version" : " 1.0.2 " ,
3
+ "version" : " 1.0.3 " ,
4
4
"private" : false ,
5
5
"bugs" : " https://github.com/shefing/payload-tools/issues" ,
6
6
"repository" : " https://github.com/shefing/payload-tools" ,
40
40
},
41
41
"devDependencies" : {
42
42
"payload" : " 3.0.2" ,
43
- "typescript" : " ^5.5.2"
43
+ "typescript" : " ^5.5.2" ,
44
+ "@payloadcms/ui" : " 3.0.2" ,
45
+ "@types/react" : " npm:types-react@19.0.0-rc.1" ,
46
+ "@types/react-dom" : " npm:types-react-dom@19.0.0-rc.1" ,
47
+ "react" : " 19.0.0-rc-65a56d0e-20241020" ,
48
+ "react-dom" : " 19.0.0-rc-65a56d0e-20241020" ,
49
+ "moment" : " ^2.30.1"
50
+ },
51
+ "dependencies" : {
52
+ "moment" : " ^2.30.1"
44
53
},
45
54
"publishConfig" : {
46
55
"access" : " public"
56
+ },
57
+
58
+ "peerDependencies" : {
59
+ "@payloadcms/ui" : " 3.0.2" ,
60
+ "payload" : " 3.0.2" ,
61
+ "i18next" : " ^23.0.0"
47
62
}
48
63
}
Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ const processFields = (fields: Field[], hasDraft: boolean): Field[] => {
90
90
fields . push ( {
91
91
name : 'updatedAt' ,
92
92
type : 'date' ,
93
+ localized : true ,
93
94
admin : {
94
95
disableBulkEdit : true ,
95
96
hidden : true ,
@@ -104,16 +105,24 @@ const processFields = (fields: Field[], hasDraft: boolean): Field[] => {
104
105
const authorFields : Field [ ] = [
105
106
{
106
107
name : 'creator' ,
107
- label : 'Created By' ,
108
+ label : {
109
+ en : 'Created By' ,
110
+ he : 'נוצר על ידי' ,
111
+ } ,
108
112
type : 'text' ,
113
+ localized : true ,
109
114
admin : {
110
115
readOnly : true ,
111
116
} ,
112
117
} ,
113
118
{
114
119
name : 'updator' ,
115
- label : 'Updated By' ,
120
+ label : {
121
+ en : 'Updated By' ,
122
+ he : 'עודכן על ידי' ,
123
+ } ,
116
124
type : 'text' ,
125
+ localized : true ,
117
126
admin : {
118
127
readOnly : true ,
119
128
} ,
@@ -123,7 +132,12 @@ const processFields = (fields: Field[], hasDraft: boolean): Field[] => {
123
132
authorFields . push (
124
133
{
125
134
name : 'publishDate' ,
135
+ label :{
136
+ en : 'Published Date' ,
137
+ he : 'תאריך פרסום' ,
138
+ } ,
126
139
type : 'date' ,
140
+ localized : true ,
127
141
admin : {
128
142
date : {
129
143
pickerAppearance : 'dayAndTime' ,
@@ -134,7 +148,11 @@ const processFields = (fields: Field[], hasDraft: boolean): Field[] => {
134
148
} ,
135
149
{
136
150
name : 'publisher' ,
137
- label : 'Published By' ,
151
+ label : {
152
+ en : 'Published By' ,
153
+ he : 'פורסם על ידי' ,
154
+ } ,
155
+ localized : true ,
138
156
type : 'text' ,
139
157
admin : {
140
158
readOnly : true ,
@@ -144,7 +162,10 @@ const processFields = (fields: Field[], hasDraft: boolean): Field[] => {
144
162
}
145
163
146
164
const authorTab : UnnamedTab = {
147
- label : 'Author Data' ,
165
+ label :{
166
+ en : 'Author Data' ,
167
+ he : 'נתוני מחבר' ,
168
+ } ,
148
169
fields : authorFields ,
149
170
} ;
150
171
const hiddenFields = fields . filter (
@@ -154,7 +175,10 @@ const processFields = (fields: Field[], hasDraft: boolean): Field[] => {
154
175
fields [ 0 ] . tabs . push ( authorTab ) ;
155
176
} else {
156
177
const contentTab : UnnamedTab = {
157
- label : 'Content' ,
178
+ label :{
179
+ en : 'Content' ,
180
+ he : 'תוכן' ,
181
+ } ,
158
182
fields : [ ...fields . filter ( ( field ) => ( field as FieldAffectingData ) . admin ?. hidden !== true ) ] ,
159
183
} ;
160
184
fields = [
You can’t perform that action at this time.
0 commit comments