mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 10:55:37 +00:00
chore: use getTrad so react-intl works
This commit is contained in:
parent
7e5bb3b333
commit
7de920548e
@ -77,6 +77,7 @@ const Notification = ({ dispatch, notification }) => {
|
|||||||
{formattedMessage({
|
{formattedMessage({
|
||||||
id: message?.id || message,
|
id: message?.id || message,
|
||||||
defaultMessage: message?.defaultMessage || message?.id || message,
|
defaultMessage: message?.defaultMessage || message?.id || message,
|
||||||
|
values: message?.values,
|
||||||
})}
|
})}
|
||||||
</Alert>
|
</Alert>
|
||||||
);
|
);
|
||||||
|
|||||||
@ -9,6 +9,7 @@ import { CarouselAssets } from './Carousel/CarouselAssets';
|
|||||||
import { EditFolderDialog } from '../EditFolderDialog';
|
import { EditFolderDialog } from '../EditFolderDialog';
|
||||||
import { UploadAssetDialog } from '../UploadAssetDialog/UploadAssetDialog';
|
import { UploadAssetDialog } from '../UploadAssetDialog/UploadAssetDialog';
|
||||||
import getAllowedFiles from '../../utils/getAllowedFiles';
|
import getAllowedFiles from '../../utils/getAllowedFiles';
|
||||||
|
import getTrad from '../../utils/getTrad';
|
||||||
|
|
||||||
const STEPS = {
|
const STEPS = {
|
||||||
AssetSelect: 'SelectAsset',
|
AssetSelect: 'SelectAsset',
|
||||||
@ -112,11 +113,11 @@ export const MediaLibraryInput = ({
|
|||||||
type: 'warning',
|
type: 'warning',
|
||||||
timeout: 4000,
|
timeout: 4000,
|
||||||
message: {
|
message: {
|
||||||
id: 'input.notification.not-supported',
|
id: getTrad('input.notification.not-supported'),
|
||||||
defaultMessage: `You can't upload this type of file, only the following types are accepted – ${fieldAllowedTypes.join(
|
defaultMessage: `You can't upload this type of file.`,
|
||||||
','
|
values: {
|
||||||
)}`,
|
fileTypes: fieldAllowedTypes.join(','),
|
||||||
assetTypes: fieldAllowedTypes.join(','),
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -38,7 +38,7 @@
|
|||||||
"input.placeholder.icon": "Drop the asset in this zone",
|
"input.placeholder.icon": "Drop the asset in this zone",
|
||||||
"input.url.description": "Separate your URL links by a carriage return.",
|
"input.url.description": "Separate your URL links by a carriage return.",
|
||||||
"input.url.label": "URL",
|
"input.url.label": "URL",
|
||||||
"input.notification.not-supported": "You can't upload this type of file.",
|
"input.notification.not-supported": "You can't upload this type of file, only the following types are accepted – {fileTypes}",
|
||||||
"list.assets.title": "Assets ({count})",
|
"list.assets.title": "Assets ({count})",
|
||||||
"list.asset.at.finished": "The assets have finished loading.",
|
"list.asset.at.finished": "The assets have finished loading.",
|
||||||
"list.assets-empty.search": "No result found",
|
"list.assets-empty.search": "No result found",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user