Skip to content

Commit

Permalink
fix: wrong translation key being used as upload:Sizes instead of uplo…
Browse files Browse the repository at this point in the history
…ad:sizes (#6323)
  • Loading branch information
paulpopus committed May 11, 2024
1 parent 4f0ddcf commit 2f02b3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/payload/src/uploads/getBaseFields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export const getBaseUploadFields = ({ collection, config }: Options): Field[] =>
],
label: size.name,
})),
label: ({ t }) => t('upload:Sizes'),
label: ({ t }) => t('upload:sizes'),
},
])
}
Expand Down
1 change: 1 addition & 0 deletions packages/translations/src/clientKeys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ export const clientTranslationKeys = [
'upload:setCropArea',
'upload:setFocalPoint',
'upload:sizesFor',
'upload:sizes',
'upload:width',
'upload:fileName',
'upload:fileSize',
Expand Down

0 comments on commit 2f02b3a

Please sign in to comment.