strapi-plugin-i18n
Version:
This plugin enables to create, to read and to update content in different languages, both from the Admin Panel and from the API
26 lines (21 loc) • 557 B
JavaScript
import * as React from 'react';
import { FormattedMessage } from 'react-intl';
import { getTrad } from '../../utils';
import useHasI18n from '../../hooks/useHasI18n';
const DeleteModalAdditionalInfos = () => {
const hasI18nEnabled = useHasI18n();
if (!hasI18nEnabled) {
return null;
}
return (
<span>
<FormattedMessage
id={getTrad('Settings.list.actions.deleteAdditionalInfos')}
values={{
em: chunks => <em>{chunks}</em>,
}}
/>
</span>
);
};
export default DeleteModalAdditionalInfos;