Media Library: improve microcopy

This commit is contained in:
Gustav Hansen 2022-03-09 13:24:03 +01:00
parent 8924128465
commit bc4ab36d08
5 changed files with 8 additions and 8 deletions

View File

@ -17,7 +17,7 @@ export const SelectedStep = ({ selectedAssets, onSelectAsset, onReorderAsset })
{ {
id: getTrad('list.assets.selected'), id: getTrad('list.assets.selected'),
defaultMessage: defaultMessage:
'{number, plural, =0 {No asset} one {1 asset} other {# assets}} selected', '{number, plural, =0 {No asset} one {1 asset} other {# assets}} ready to upload',
}, },
{ number: selectedAssets.length } { number: selectedAssets.length }
)} )}
@ -25,7 +25,7 @@ export const SelectedStep = ({ selectedAssets, onSelectAsset, onReorderAsset })
<Typography variant="pi" textColor="neutral600"> <Typography variant="pi" textColor="neutral600">
{formatMessage({ {formatMessage({
id: getTrad('modal.upload-list.sub-header-subtitle'), id: getTrad('modal.upload-list.sub-header-subtitle'),
defaultMessage: 'Manage the assets before uploading them to the Media Library', defaultMessage: 'Manage the assets before adding them to the Media Library',
})} })}
</Typography> </Typography>
</Stack> </Stack>

View File

@ -78,7 +78,7 @@ export const PendingAssetStep = ({
{ {
id: getTrad('list.assets.selected'), id: getTrad('list.assets.selected'),
defaultMessage: defaultMessage:
'{number, plural, =0 {No asset} one {1 asset} other {# assets}} selected', '{number, plural, =0 {No asset} one {1 asset} other {# assets}} ready to upload',
}, },
{ number: assets.length } { number: assets.length }
)} )}
@ -86,7 +86,7 @@ export const PendingAssetStep = ({
<Typography variant="pi" textColor="neutral600"> <Typography variant="pi" textColor="neutral600">
{formatMessage({ {formatMessage({
id: getTrad('modal.upload-list.sub-header-subtitle'), id: getTrad('modal.upload-list.sub-header-subtitle'),
defaultMessage: 'Manage the assets before uploading them to the Media Library', defaultMessage: 'Manage the assets before adding them to the Media Library',
})} })}
</Typography> </Typography>
</Stack> </Stack>

View File

@ -765,7 +765,7 @@ exports[`PendingAssetStep snapshots the component with valid cards 1`] = `
<span <span
class="c12" class="c12"
> >
Manage the assets before uploading them to the Media Library Manage the assets before adding them to the Media Library
</span> </span>
</div> </div>
<button <button

View File

@ -101,7 +101,7 @@ describe('UploadAssetDialog', () => {
) )
).toBeInTheDocument(); ).toBeInTheDocument();
expect( expect(
screen.getByText('Manage the assets before uploading them to the Media Library') screen.getByText('Manage the assets before adding them to the Media Library')
).toBeInTheDocument(); ).toBeInTheDocument();
expect(screen.getAllByText(`test.${ext}`).length).toBe(number); expect(screen.getAllByText(`test.${ext}`).length).toBe(number);
expect(screen.getByText(ext)).toBeInTheDocument(); expect(screen.getByText(ext)).toBeInTheDocument();
@ -199,7 +199,7 @@ describe('UploadAssetDialog', () => {
); );
expect(screen.getAllByText(`Add new assets`).length).toBe(2); expect(screen.getAllByText(`Add new assets`).length).toBe(2);
expect( expect(
screen.getByText('Manage the assets before uploading them to the Media Library') screen.getByText('Manage the assets before adding them to the Media Library')
).toBeInTheDocument(); ).toBeInTheDocument();
assets.forEach(asset => { assets.forEach(asset => {

View File

@ -68,7 +68,7 @@
"modal.remove.success-label": "The asset has been successfully removed.", "modal.remove.success-label": "The asset has been successfully removed.",
"modal.selected-list.sub-header-subtitle": "Drag & drop to reorder the assets in the field", "modal.selected-list.sub-header-subtitle": "Drag & drop to reorder the assets in the field",
"modal.upload-list.footer.button": "Upload {number, plural, one {# asset} other {# assets}} to the library", "modal.upload-list.footer.button": "Upload {number, plural, one {# asset} other {# assets}} to the library",
"modal.upload-list.sub-header-subtitle": "Manage the assets before uploading them to the Media Library", "modal.upload-list.sub-header-subtitle": "Manage the assets before adding them to the Media Library",
"modal.upload-list.sub-header.button": "Add more assets", "modal.upload-list.sub-header.button": "Add more assets",
"modal.upload.cancelled": "Upload manually aborted.", "modal.upload.cancelled": "Upload manually aborted.",
"page.title": "Settings - Media Library", "page.title": "Settings - Media Library",