Skip to content

Commit

Permalink
Merge pull request #9036 from adossas-spdrm/patch-1
Browse files Browse the repository at this point in the history
Fix `Loading` custom message raises a missing translation key warning
  • Loading branch information
djhi authored Jun 21, 2023
2 parents e0c9c52 + ec7262b commit bf93a29
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/ra-ui-materialui/src/layout/Loading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ export const Loading = (props: LoadingProps) => {
className={LoadingClasses.icon}
color="primary"
/>
<h1>{translate(loadingPrimary)}</h1>
<div>{translate(loadingSecondary)}</div>
<h1>{translate(loadingPrimary, { _: loadingPrimary })}</h1>
<div>
{translate(loadingSecondary, { _: loadingSecondary })}
</div>
</div>
</Root>
);
Expand Down

0 comments on commit bf93a29

Please sign in to comment.