@refinedev/core@4.26.0
版本发布时间: 2023-06-29 22:34:32
refinedev/refine最新发布版本:@refinedev/supabase@5.9.4(2024-09-03 19:48:37)
Minor Changes
-
#4568
8c2b3be35b0
Thanks @salihozdemir! - feat: add thetextTransformers
option to<Refine/>
componentThe
textTransformers
option in refine is used to transform the resource name displayed on the user interface (UI). By default, if you define a resource namedposts
, refine will display it asPosts
. Similarly, when you delete a record, notification messages will be shown asPost deleted successfully.
.You have the flexibility to customize these messages by using the
textTransformers
option. For instance, if you wish to disable any transformation, you can set thetextTransformers
option as shown in the example below:const App: React.FC = () => ( <Refine // ... options={{ textTransformers: { humanize: (text) => text, plural: (text) => text, singular: (text) => text, }, }} /> );
Patch Changes
-
#4583
c3c0deed564
Thanks @aliemir! - Added the missingresource
property inparams
of theuseCan
call, which was leading to missing resource details in the access control checks in thecan
function.The provided
resource
item is sanitized to remove non-serializable properties such asicon
etc. If you need such items, you should try to access yourresource
item directly from your defitinions. -
#4599
5bb6f47a4d4
Thanks @aliemir! - Update default document title generation to use the fallback title wheni18n
'stranslate
function returns thekey
value.