diff --git a/packages/core/admin/admin/src/components/Notifications/Notification/index.js b/packages/core/admin/admin/src/components/Notifications/Notification/index.js index c96dc596f8..30ab563d3c 100644 --- a/packages/core/admin/admin/src/components/Notifications/Notification/index.js +++ b/packages/core/admin/admin/src/components/Notifications/Notification/index.js @@ -40,18 +40,18 @@ const Notification = ({ dispatch, notification }) => { variant = 'default'; alertTitle = formatMessage({ id: 'notification.default.title', - defaultMessage: 'Information Alert:', + defaultMessage: 'Information:', }); } else if (type === 'warning') { alertTitle = formatMessage({ id: 'notification.warning.title', - defaultMessage: 'Warning Alert:', + defaultMessage: 'Warning:', }); variant = 'danger'; } else { alertTitle = formatMessage({ id: 'notification.success.title', - defaultMessage: 'Success Alert:', + defaultMessage: 'Success:', }); variant = 'success'; } diff --git a/packages/core/admin/admin/src/content-manager/components/DynamicTable/index.js b/packages/core/admin/admin/src/content-manager/components/DynamicTable/index.js index 8f626d809b..7ca5563c80 100644 --- a/packages/core/admin/admin/src/content-manager/components/DynamicTable/index.js +++ b/packages/core/admin/admin/src/content-manager/components/DynamicTable/index.js @@ -16,6 +16,7 @@ const DynamicTable = ({ canCreate, canDelete, contentTypeName, + action, isBulkable, isLoading, onConfirmDelete, @@ -77,6 +78,7 @@ const DynamicTable = ({ { id: 'collectionTypes', title: { id: getTrad('components.LeftMenu.collection-types'), - defaultMessage: - '{number, plural, =0 {Collection Types} one {Collection Type } other {Collection Types}}', - values: { number: intlCollectionTypeLinks.length }, + defaultMessage: 'Collection Types', }, searchable: true, links: sortBy(matchByTitle(intlCollectionTypeLinks, search), object => @@ -61,9 +59,7 @@ const LeftMenu = () => { id: 'singleTypes', title: { id: getTrad('components.LeftMenu.single-types'), - defaultMessage: - '{number, plural, =0 {Single Types} one {Single Type } other {Single Types}}', - values: { number: intlSingleTypeLinks.length }, + defaultMessage: 'Single Types', }, searchable: true, links: sortBy(matchByTitle(intlSingleTypeLinks, search), object => diff --git a/packages/core/admin/admin/src/content-manager/pages/App/tests/index.test.js b/packages/core/admin/admin/src/content-manager/pages/App/tests/index.test.js index 12c35aeeb3..3224b03f63 100644 --- a/packages/core/admin/admin/src/content-manager/pages/App/tests/index.test.js +++ b/packages/core/admin/admin/src/content-manager/pages/App/tests/index.test.js @@ -569,7 +569,7 @@ describe('Content manager | App | main', () => { - Collection Type + Collection Types @@ -641,7 +641,7 @@ describe('Content manager | App | main', () => { - Single Type + Single Types diff --git a/packages/core/admin/admin/src/content-manager/pages/EditSettingsView/index.js b/packages/core/admin/admin/src/content-manager/pages/EditSettingsView/index.js index 8a892b0743..1cd7b404c9 100644 --- a/packages/core/admin/admin/src/content-manager/pages/EditSettingsView/index.js +++ b/packages/core/admin/admin/src/content-manager/pages/EditSettingsView/index.js @@ -243,7 +243,7 @@ const EditSettingsView = ({ mainLayout, components, isContentTypeView, slug, upd > {formatMessage({ id: 'app.components.go-back', - defaultMessage: 'Go back', + defaultMessage: 'Back', })} } diff --git a/packages/core/admin/admin/src/content-manager/pages/EditSettingsView/tests/__snapshots__/index.test.js.snap b/packages/core/admin/admin/src/content-manager/pages/EditSettingsView/tests/__snapshots__/index.test.js.snap index 40e0690f7e..b5b64522ae 100644 --- a/packages/core/admin/admin/src/content-manager/pages/EditSettingsView/tests/__snapshots__/index.test.js.snap +++ b/packages/core/admin/admin/src/content-manager/pages/EditSettingsView/tests/__snapshots__/index.test.js.snap @@ -1143,7 +1143,7 @@ exports[`EditSettingsView renders and matches the snapshot 1`] = ` - Go back + Back @@ -3027,7 +3027,7 @@ exports[`EditSettingsView should add field 1`] = ` - Go back + Back @@ -5405,7 +5405,7 @@ exports[`EditSettingsView should add relation 1`] = ` - Go back + Back diff --git a/packages/core/admin/admin/src/content-manager/pages/ListSettingsView/index.js b/packages/core/admin/admin/src/content-manager/pages/ListSettingsView/index.js index 3cf9bd1ca0..6b2717d6cb 100644 --- a/packages/core/admin/admin/src/content-manager/pages/ListSettingsView/index.js +++ b/packages/core/admin/admin/src/content-manager/pages/ListSettingsView/index.js @@ -191,7 +191,7 @@ const ListSettingsView = ({ layout, slug }) => { } to={goBackUrl} id="go-back"> - {formatMessage({ id: 'app.components.go-back', defaultMessage: 'Go back' })} + {formatMessage({ id: 'app.components.go-back', defaultMessage: 'Back' })} } primaryAction={ diff --git a/packages/core/admin/admin/src/content-manager/pages/ListSettingsView/tests/__snapshots__/index.test.js.snap b/packages/core/admin/admin/src/content-manager/pages/ListSettingsView/tests/__snapshots__/index.test.js.snap index 160935fe7b..1baa5efc71 100644 --- a/packages/core/admin/admin/src/content-manager/pages/ListSettingsView/tests/__snapshots__/index.test.js.snap +++ b/packages/core/admin/admin/src/content-manager/pages/ListSettingsView/tests/__snapshots__/index.test.js.snap @@ -1004,7 +1004,7 @@ exports[`ADMIN | CM | LV | Configure the view renders and matches the snapshot 1 - Go back + Back @@ -2892,7 +2892,7 @@ exports[`ADMIN | CM | LV | Configure the view should add field 1`] = ` - Go back + Back diff --git a/packages/core/admin/admin/src/content-manager/pages/ListView/index.js b/packages/core/admin/admin/src/content-manager/pages/ListView/index.js index 7e6c974e39..4e785f5c2c 100644 --- a/packages/core/admin/admin/src/content-manager/pages/ListView/index.js +++ b/packages/core/admin/admin/src/content-manager/pages/ListView/index.js @@ -24,6 +24,8 @@ import { Box } from '@strapi/design-system/Box'; import { ActionLayout, ContentLayout, HeaderLayout } from '@strapi/design-system/Layout'; import { useNotifyAT } from '@strapi/design-system/LiveRegions'; import { Button } from '@strapi/design-system/Button'; +import { Link } from '@strapi/design-system/Link'; +import ArrowLeft from '@strapi/icons/ArrowLeft'; import Plus from '@strapi/icons/Plus'; import Cog from '@strapi/icons/Cog'; import axios from 'axios'; @@ -234,29 +236,43 @@ function ListView({ ) : null; - const createAction = canCreate ? ( - - ) : null; + trackUsageRef.current('willCreateEntry', trackerProperty); + push({ + pathname: `${pathname}/create`, + search: query.plugins ? pluginsQueryParams : '', + }); + }} + startIcon={} + > + {formatMessage({ + id: getTrad('HeaderLayout.button.label-add-entry'), + defaultMessage: 'Create new entry', + })} + + ) : null; return (
- + } to="/content-manager/"> + {formatMessage({ + id: 'app.components.HeaderLayout.link.go-back', + defaultMessage: 'Back', + })} + + } + /> {!canRead && ( } /> )} @@ -320,6 +336,7 @@ function ListView({ // FIXME: remove the layout props drilling layout={layout} rows={data} + action={getCreateAction({ variant: 'secondary' })} /> diff --git a/packages/core/admin/admin/src/hooks/useSettingsMenu/utils/defaultGlobalLinks.js b/packages/core/admin/admin/src/hooks/useSettingsMenu/utils/defaultGlobalLinks.js index f6f64f174f..f81b0f3b15 100644 --- a/packages/core/admin/admin/src/hooks/useSettingsMenu/utils/defaultGlobalLinks.js +++ b/packages/core/admin/admin/src/hooks/useSettingsMenu/utils/defaultGlobalLinks.js @@ -2,7 +2,7 @@ import adminPermissions from '../../../permissions'; const defaultGlobalLinks = [ { - intlLabel: { id: 'Settings.application.title', defaultMessage: 'Application' }, + intlLabel: { id: 'Settings.application.title', defaultMessage: 'Overview' }, to: '/settings/application-infos', id: '000-application-infos', isDisplayed: false, diff --git a/packages/core/admin/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/index.js b/packages/core/admin/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/index.js index ef30631c75..657c5d4eea 100644 --- a/packages/core/admin/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/index.js +++ b/packages/core/admin/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/index.js @@ -165,7 +165,7 @@ const ApiTokenCreateView = () => { } to="/settings/api-tokens"> {formatMessage({ id: 'app.components.go-back', - defaultMessage: 'Go back', + defaultMessage: 'Back', })} } @@ -185,7 +185,7 @@ const ApiTokenCreateView = () => { {formatMessage({ - id: 'app.components.Users.ModalCreateBody.block-title.details', + id: 'Settings.apiTokens.details', defaultMessage: 'Details', })} diff --git a/packages/core/admin/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/index.js b/packages/core/admin/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/index.js index a5a38cca01..a2db514625 100644 --- a/packages/core/admin/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/index.js +++ b/packages/core/admin/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/index.js @@ -26,10 +26,10 @@ const ApplicationInfosPage = () => {
@@ -45,8 +45,8 @@ const ApplicationInfosPage = () => { {formatMessage({ - id: 'Settings.application.information', - defaultMessage: 'Information', + id: 'Settings.application.details', + defaultMessage: 'Details', })} @@ -54,11 +54,24 @@ const ApplicationInfosPage = () => { {formatMessage({ - id: 'Settings.application.details', - defaultMessage: 'details', + id: 'Settings.application.strapiVersion', + defaultMessage: 'strapi version', })} v{strapiVersion} + } + > + {formatMessage({ + id: 'Settings.application.get-help', + defaultMessage: 'Get help', + })} + @@ -96,7 +109,7 @@ const ApplicationInfosPage = () => { }> {formatMessage({ id: 'Settings.application.link-pricing', - defaultMessage: 'See all pricing', + defaultMessage: 'See all pricing plans', })} diff --git a/packages/core/admin/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/tests/index.test.js b/packages/core/admin/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/tests/index.test.js index c302e887ef..0708c64e7c 100644 --- a/packages/core/admin/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/tests/index.test.js +++ b/packages/core/admin/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/tests/index.test.js @@ -289,14 +289,14 @@ describe('Application page', () => {

- Application + Overview

- See your project's details + Administration panel’s global information

@@ -312,7 +312,7 @@ describe('Application page', () => {

- Information + Details

{ - details + strapi version

{ v 4.0.0

+ + + Get help + + +
{ - See all pricing + See all pricing plans
diff --git a/packages/core/admin/admin/src/pages/SettingsPage/pages/Users/EditPage/index.js b/packages/core/admin/admin/src/pages/SettingsPage/pages/Users/EditPage/index.js index 3d46198458..e5298ffebf 100644 --- a/packages/core/admin/admin/src/pages/SettingsPage/pages/Users/EditPage/index.js +++ b/packages/core/admin/admin/src/pages/SettingsPage/pages/Users/EditPage/index.js @@ -150,7 +150,7 @@ const EditPage = ({ canUpdate }) => { } to="/settings/users?pageSize=10&page=1&sort=firstname"> {formatMessage({ id: 'app.components.go-back', - defaultMessage: 'Go back', + defaultMessage: 'Back', })} } @@ -194,7 +194,7 @@ const EditPage = ({ canUpdate }) => { > {formatMessage({ id: 'app.components.go-back', - defaultMessage: 'Go back', + defaultMessage: 'Back', })} } @@ -254,7 +254,7 @@ const EditPage = ({ canUpdate }) => { {formatMessage({ id: 'app.components.Users.ModalCreateBody.block-title.login', - defaultMessage: 'Login settings', + defaultMessage: "User's role", })} diff --git a/packages/core/admin/admin/src/pages/SettingsPage/pages/Users/ListPage/ModalForm/index.js b/packages/core/admin/admin/src/pages/SettingsPage/pages/Users/ListPage/ModalForm/index.js index 7079fdb6e2..0bb3d6c378 100644 --- a/packages/core/admin/admin/src/pages/SettingsPage/pages/Users/ListPage/ModalForm/index.js +++ b/packages/core/admin/admin/src/pages/SettingsPage/pages/Users/ListPage/ModalForm/index.js @@ -58,7 +58,7 @@ const ModalForm = ({ queryName, onToggle }) => { const headerTitle = formatMessage({ id: 'Settings.permissions.users.create', - defaultMessage: 'Create new user', + defaultMessage: 'Invite new user', }); const handleSubmit = async (body, { setErrors }) => { @@ -118,7 +118,7 @@ const ModalForm = ({ queryName, onToggle }) => { {formatMessage({ id: 'app.components.Users.ModalCreateBody.block-title.details', - defaultMessage: 'Details', + defaultMessage: 'User details', })} @@ -147,7 +147,7 @@ const ModalForm = ({ queryName, onToggle }) => { {formatMessage({ id: 'app.components.Users.ModalCreateBody.block-title.login', - defaultMessage: 'Login settings', + defaultMessage: "User's role", })} diff --git a/packages/core/admin/admin/src/pages/SettingsPage/pages/Users/ListPage/ModalForm/utils/stepper.js b/packages/core/admin/admin/src/pages/SettingsPage/pages/Users/ListPage/ModalForm/utils/stepper.js index 8c7df6edb5..fe0342e333 100644 --- a/packages/core/admin/admin/src/pages/SettingsPage/pages/Users/ListPage/ModalForm/utils/stepper.js +++ b/packages/core/admin/admin/src/pages/SettingsPage/pages/Users/ListPage/ModalForm/utils/stepper.js @@ -2,7 +2,7 @@ const stepper = { create: { buttonSubmitLabel: { id: 'app.containers.Users.ModalForm.footer.button-success', - defaultMessage: 'Create user', + defaultMessage: 'Invite user', }, isDisabled: false, next: 'magic-link', diff --git a/packages/core/admin/admin/src/pages/SettingsPage/pages/Users/ListPage/index.js b/packages/core/admin/admin/src/pages/SettingsPage/pages/Users/ListPage/index.js index 3afd081129..dc9ce8bf8f 100644 --- a/packages/core/admin/admin/src/pages/SettingsPage/pages/Users/ListPage/index.js +++ b/packages/core/admin/admin/src/pages/SettingsPage/pages/Users/ListPage/index.js @@ -16,7 +16,6 @@ import Envelop from '@strapi/icons/Envelop'; import { useLocation } from 'react-router-dom'; import { useIntl } from 'react-intl'; import { useMutation, useQuery, useQueryClient } from 'react-query'; -import get from 'lodash/get'; import adminPermissions from '../../../../../permissions'; import TableRows from './DynamicTable/TableRows'; import Filters from './Filters'; @@ -73,8 +72,6 @@ const ListPage = () => { setIsModalOpen(prev => !prev); }; - const total = get(data, 'pagination.total', 0); - const deleteAllMutation = useMutation(ids => deleteData(ids), { onSuccess: async () => { await queryClient.invalidateQueries(queryName); @@ -104,7 +101,7 @@ const ListPage = () => { > {formatMessage({ id: 'Settings.permissions.users.create', - defaultMessage: 'Create new user', + defaultMessage: 'Invite new user', })} ) : ( @@ -117,13 +114,10 @@ const ListPage = () => { {canRead && ( { - Create new user + Invite new user

- 0 users found + All the users who have access to the Strapi admin panel

@@ -1403,10 +1403,10 @@ describe('ADMIN | Pages | USERS | ListPage', () => { - Active User + User status { return ( diff --git a/packages/core/admin/admin/src/pages/SettingsPage/pages/Users/components/MagicLink/index.js b/packages/core/admin/admin/src/pages/SettingsPage/pages/Users/components/MagicLink/index.js index b53df61437..e7bd4f7294 100644 --- a/packages/core/admin/admin/src/pages/SettingsPage/pages/Users/components/MagicLink/index.js +++ b/packages/core/admin/admin/src/pages/SettingsPage/pages/Users/components/MagicLink/index.js @@ -12,7 +12,7 @@ const MagicLink = ({ registrationToken }) => { {formatMessage({ id: 'app.components.Users.MagicLink.connect', - defaultMessage: 'Send this link to the user for them to connect.', + defaultMessage: 'Copy and share this link to give access to this user', })} ); diff --git a/packages/core/admin/admin/src/pages/SettingsPage/pages/Users/components/SelectRoles/index.js b/packages/core/admin/admin/src/pages/SettingsPage/pages/Users/components/SelectRoles/index.js index 4cb85c0329..acebb9184c 100644 --- a/packages/core/admin/admin/src/pages/SettingsPage/pages/Users/components/SelectRoles/index.js +++ b/packages/core/admin/admin/src/pages/SettingsPage/pages/Users/components/SelectRoles/index.js @@ -44,7 +44,7 @@ const SelectRoles = ({ disabled, error, onChange, value }) => { }); const hint = formatMessage({ id: 'app.components.Users.ModalCreateBody.block-title.roles.description', - defaultMessage: 'Your user can have one or several roles', + defaultMessage: 'A user can have one or several roles', }); const placeholder = formatMessage({ id: 'app.components.Select.placeholder', diff --git a/packages/core/admin/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/HeadersInput/index.js b/packages/core/admin/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/HeadersInput/index.js index 9c68694397..7ad3e54a6e 100644 --- a/packages/core/admin/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/HeadersInput/index.js +++ b/packages/core/admin/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/HeadersInput/index.js @@ -101,7 +101,7 @@ const HeadersInput = () => { > {formatMessage({ id: 'Settings.webhooks.create.header', - defaultMessage: 'Create a new header', + defaultMessage: 'Create new header', })} diff --git a/packages/core/admin/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/WebhookForm/index.js b/packages/core/admin/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/WebhookForm/index.js index a6e4022b78..fc3faf5def 100644 --- a/packages/core/admin/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/WebhookForm/index.js +++ b/packages/core/admin/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/WebhookForm/index.js @@ -86,7 +86,7 @@ const WebhookForm = ({ } to="/settings/webhooks"> {formatMessage({ id: 'app.components.go-back', - defaultMessage: 'Go back', + defaultMessage: 'Back', })} } diff --git a/packages/core/admin/admin/src/pages/SettingsPage/pages/Webhooks/ListView/index.js b/packages/core/admin/admin/src/pages/SettingsPage/pages/Webhooks/ListView/index.js index 98ec4ec96f..a783deef2a 100644 --- a/packages/core/admin/admin/src/pages/SettingsPage/pages/Webhooks/ListView/index.js +++ b/packages/core/admin/admin/src/pages/SettingsPage/pages/Webhooks/ListView/index.js @@ -247,7 +247,7 @@ const ListView = () => { title={formatMessage({ id: 'Settings.webhooks.title', defaultMessage: 'Webhooks' })} subtitle={formatMessage({ id: 'Settings.webhooks.list.description', - defaultMessage: 'Get POST changes notifications.', + defaultMessage: 'Get POST changes notifications', })} primaryAction={ canCreate && @@ -255,7 +255,7 @@ const ListView = () => { } variant="default" to={`${pathname}/create`} size="L"> {formatMessage({ id: 'Settings.webhooks.list.button.add', - defaultMessage: 'Add new webhook', + defaultMessage: 'Create new webhook', })} ) @@ -305,7 +305,7 @@ const ListView = () => { > {formatMessage({ id: 'Settings.webhooks.list.button.add', - defaultMessage: 'Add new webhook', + defaultMessage: 'Create new webhook', })} } @@ -447,7 +447,7 @@ const ListView = () => { icon={} content={formatMessage({ id: 'Settings.webhooks.list.empty.description', - defaultMessage: 'Add your first webhook', + defaultMessage: 'No webhooks found', })} action={ } diff --git a/packages/core/admin/admin/src/pages/SettingsPage/pages/Webhooks/ListView/tests/index.test.js b/packages/core/admin/admin/src/pages/SettingsPage/pages/Webhooks/ListView/tests/index.test.js index 2affd836f0..8b36191209 100644 --- a/packages/core/admin/admin/src/pages/SettingsPage/pages/Webhooks/ListView/tests/index.test.js +++ b/packages/core/admin/admin/src/pages/SettingsPage/pages/Webhooks/ListView/tests/index.test.js @@ -811,14 +811,14 @@ describe('Admin | containers | ListView', () => { - Add new webhook + Create new webhook

- Get POST changes notifications. + Get POST changes notifications

@@ -1263,7 +1263,7 @@ describe('Admin | containers | ListView', () => { - Add new webhook + Create new webhook diff --git a/packages/core/admin/admin/src/translations/en.json b/packages/core/admin/admin/src/translations/en.json index c1aa4df6b5..40f36c54b0 100644 --- a/packages/core/admin/admin/src/translations/en.json +++ b/packages/core/admin/admin/src/translations/en.json @@ -91,6 +91,7 @@ "Roles.RoleRow.user-count.singular": "{number} user", "Roles.components.List.empty.withSearch": "There is no role corresponding to the search ({search})...", "Settings.PageTitle": "Settings - {name}", + "Settings.apiTokens.details": "Details", "Settings.apiTokens.addFirstToken": "Add your first API Token", "Settings.apiTokens.addNewToken": "Add new API Token", "Settings.apiTokens.copy.editMessage": "For security reasons, you can only see your token once.", @@ -103,15 +104,16 @@ "Settings.apiTokens.title": "API Tokens", "Settings.apiTokens.types.full-access": "Full access", "Settings.apiTokens.types.read-only": "Read-only", - "Settings.application.description": "See your project's details", - "Settings.application.details": "details", + "Settings.application.description": "Administration panel’s global information", + "Settings.application.strapiVersion": "strapi version", "Settings.application.edition-title": "current plan", - "Settings.application.information": "Information", - "Settings.application.link-pricing": "See all pricing", + "Settings.application.details": "Details", + "Settings.application.link-pricing": "See all pricing plans", "Settings.application.link-upgrade": "Upgrade your admin panel", + "Settings.application.get-help": "Get help", "Settings.application.node-version": "node version", "Settings.application.strapi-version": "strapi version", - "Settings.application.title": "Application", + "Settings.application.title": "Overview", "Settings.error": "Error", "Settings.global": "Global Settings", "Settings.permissions": "Administration panel", @@ -132,13 +134,13 @@ "Settings.permissions.menu.link.users.label": "Users", "Settings.permissions.select-all-by-permission": "Select all {label} permissions", "Settings.permissions.select-by-permission": "Select {label} permission", - "Settings.permissions.users.create": "Create new user", + "Settings.permissions.users.create": "Invite new user", "Settings.permissions.users.form.email": "Email", "Settings.permissions.users.form.firstname": "First name", "Settings.permissions.users.form.lastname": "Last name", "Settings.permissions.users.form.sso": "Connect with SSO", "Settings.permissions.users.form.sso.description": "When enabled (ON), users can login via SSO", - "Settings.permissions.users.listview.header.subtitle": "{number, plural, =0 {# users} one {# user } other {# users}} found", + "Settings.permissions.users.listview.header.subtitle": "All the users who have access to the Strapi admin panel", "Settings.permissions.users.listview.header.title": "Users", "Settings.permissions.users.tabs.label": "Tabs Permissions", "Settings.profile.form.notify.data.loaded": "Your profile data has been loaded", @@ -188,7 +190,7 @@ "Settings.sso.form.settings.title": "Settings", "Settings.sso.title": "Single Sign-On", "Settings.webhooks.create": "Create a webhook", - "Settings.webhooks.create.header": "Create a new header", + "Settings.webhooks.create.header": "Create new header", "Settings.webhooks.created": "Webhook created", "Settings.webhooks.disabled": "Disabled", "Settings.webhooks.enabled": "Enabled", @@ -203,9 +205,9 @@ "Settings.webhooks.headers.remove": "Remove header row {number}", "Settings.webhooks.key": "Key", "Settings.webhooks.list.all-entries.select": "Select all entries", - "Settings.webhooks.list.button.add": "Add new webhook", - "Settings.webhooks.list.description": "Get POST changes notifications.", - "Settings.webhooks.list.empty.description": "Add your first webhook", + "Settings.webhooks.list.button.add": "Create new webhook", + "Settings.webhooks.list.description": "Get POST changes notifications", + "Settings.webhooks.list.empty.description": "No webhooks found", "Settings.webhooks.list.empty.link": "See our documentation", "Settings.webhooks.list.empty.title": "There are no webhooks yet", "Settings.webhooks.list.select": "Select", @@ -255,6 +257,7 @@ "app.components.DownloadInfo.text": "This could take a minute. Thanks for your patience.", "app.components.EmptyAttributes.title": "There are no fields yet", "app.components.EmptyStateLayout.content-permissions": "You don't have the permissions to access that content", + "app.components.EmptyStateLayout.content-document": "No content found", "app.components.HeaderLayout.link.go-back": "Back", "app.components.HomePage.button.blog": "See more on the blog", "app.components.HomePage.community": "Join the community", @@ -326,12 +329,12 @@ "app.components.UpgradePlanModal.text-ee": "Enterprise Edition", "app.components.UpgradePlanModal.text-power": "Unlock the full power of Strapi by upgrading your plan to the Enterprise Edition", "app.components.UpgradePlanModal.text-strapi": "of Strapi by upgrading your plan to the", - "app.components.Users.MagicLink.connect": "Send this link to the user for them to connect.", + "app.components.Users.MagicLink.connect": "Copy and share this link to give access to this user", "app.components.Users.MagicLink.connect.sso": "Send this link to the user, the first login can be made via a SSO provider", - "app.components.Users.ModalCreateBody.block-title.details": "Details", - "app.components.Users.ModalCreateBody.block-title.login": "Login settings", + "app.components.Users.ModalCreateBody.block-title.details": "User details", + "app.components.Users.ModalCreateBody.block-title.login": "Roles", "app.components.Users.ModalCreateBody.block-title.roles": "User's roles", - "app.components.Users.ModalCreateBody.block-title.roles.description": "Your user can have one or several roles", + "app.components.Users.ModalCreateBody.block-title.roles.description": "A user can have one or several roles", "app.components.Users.SortPicker.button-label": "Sort by", "app.components.Users.SortPicker.sortby.email_asc": "Email (A to Z)", "app.components.Users.SortPicker.sortby.email_desc": "Email (Z to A)", @@ -341,7 +344,7 @@ "app.components.Users.SortPicker.sortby.lastname_desc": "Last name (Z to A)", "app.components.Users.SortPicker.sortby.username_asc": "Username (A to Z)", "app.components.Users.SortPicker.sortby.username_desc": "Username (Z to A)", - "app.components.go-back": "Go back", + "app.components.go-back": "Back", "app.components.listPlugins.button": "Add New Plugin", "app.components.listPlugins.title.none": "No plugins installed", "app.components.listPlugins.title.plural": "{number} plugins are installed", @@ -355,7 +358,7 @@ "app.containers.Users.EditPage.header.label": "Edit {name}", "app.containers.Users.EditPage.header.label-loading": "Edit user", "app.containers.Users.EditPage.roles-bloc-title": "Attributed roles", - "app.containers.Users.ModalForm.footer.button-success": "Create user", + "app.containers.Users.ModalForm.footer.button-success": "Invite user", "app.links.configure-view": "Configure the view", "app.static.links.cheatsheet": "CheatSheet", "app.utils.SelectOption.defaultMessage": " ", @@ -451,7 +454,7 @@ "content-manager.App.schemas.data-loaded": "The schemas have been successfully loaded", "content-manager.DynamicTable.relation-loaded": "The relations have been loaded", "content-manager.EditRelations.title": "Relational data", - "content-manager.HeaderLayout.button.label-add-entry": "Add new entry", + "content-manager.HeaderLayout.button.label-add-entry": "Create new entry", "content-manager.api.id": "API ID", "content-manager.components.AddFilterCTA.add": "Filters", "content-manager.components.AddFilterCTA.hide": "Filters", @@ -481,8 +484,8 @@ "content-manager.components.FiltersPickWrapper.PluginHeader.title.filter": "Filters", "content-manager.components.FiltersPickWrapper.hide": "Hide", "content-manager.components.LeftMenu.Search.label": "Search for a content type", - "content-manager.components.LeftMenu.collection-types": "{number, plural, =0 {Collection Types} one {Collection Type } other {Collection Types}}", - "content-manager.components.LeftMenu.single-types": "{number, plural, =0 {Single Types} one {Single Type } other {Single Types}}", + "content-manager.components.LeftMenu.collection-types": "Collection Types", + "content-manager.components.LeftMenu.single-types": "Single Types", "content-manager.components.LimitSelect.itemsPerPage": "Items per page", "content-manager.components.NotAllowedInput.text": "No permissions to see this field", "content-manager.components.RepeatableComponent.error-message": "The component(s) contain error(s)", @@ -649,7 +652,7 @@ "form.button.save": "Save", "global.prompt.unsaved": "Are you sure you want to leave this page? All your modifications will be lost", "notification.contentType.relations.conflict": "Content type has conflicting relations", - "notification.default.title": "Information Alert:", + "notification.default.title": "Information:", "notification.error": "An error occurred", "notification.error.layout": "Couldn't retrieve the layout", "notification.form.error.fields": "The form contains some errors", @@ -658,10 +661,10 @@ "notification.permission.not-allowed-read": "You are not allowed to see this document", "notification.success.delete": "The item has been deleted", "notification.success.saved": "Saved", - "notification.success.title": "Success Alert:", + "notification.success.title": "Success:", "notification.version.update.link": "See more", "notification.version.update.message": "A new version of Strapi is available!", - "notification.warning.title": "Warning Alert:", + "notification.warning.title": "Warning:", "or": "OR", "request.error.model.unknown": "This model doesn't exist", "skipToContent": "Skip to content", diff --git a/packages/core/admin/ee/admin/pages/SettingsPage/pages/Roles/CreatePage/index.js b/packages/core/admin/ee/admin/pages/SettingsPage/pages/Roles/CreatePage/index.js index a590967830..daa0452b28 100644 --- a/packages/core/admin/ee/admin/pages/SettingsPage/pages/Roles/CreatePage/index.js +++ b/packages/core/admin/ee/admin/pages/SettingsPage/pages/Roles/CreatePage/index.js @@ -164,7 +164,7 @@ const CreatePage = () => { } to="/settings/roles"> {formatMessage({ id: 'app.components.go-back', - defaultMessage: 'Go back', + defaultMessage: 'Back', })} } diff --git a/packages/core/admin/ee/admin/pages/SettingsPage/pages/Roles/CreatePage/tests/__snapshots__/index.test.js.snap b/packages/core/admin/ee/admin/pages/SettingsPage/pages/Roles/CreatePage/tests/__snapshots__/index.test.js.snap index a85c4bae81..6f47446fa0 100644 --- a/packages/core/admin/ee/admin/pages/SettingsPage/pages/Roles/CreatePage/tests/__snapshots__/index.test.js.snap +++ b/packages/core/admin/ee/admin/pages/SettingsPage/pages/Roles/CreatePage/tests/__snapshots__/index.test.js.snap @@ -828,7 +828,7 @@ exports[` renders and matches the snapshot 1`] = ` - Go back + Back diff --git a/packages/core/admin/ee/admin/pages/SettingsPage/pages/Users/components/MagicLink/index.js b/packages/core/admin/ee/admin/pages/SettingsPage/pages/Users/components/MagicLink/index.js index a5734c8651..51723368aa 100644 --- a/packages/core/admin/ee/admin/pages/SettingsPage/pages/Users/components/MagicLink/index.js +++ b/packages/core/admin/ee/admin/pages/SettingsPage/pages/Users/components/MagicLink/index.js @@ -15,7 +15,7 @@ const MagicLink = ({ registrationToken }) => { > {formatMessage({ id: 'app.components.Users.MagicLink.connect', - defaultMessage: 'Send this link to the user for them to connect.', + defaultMessage: 'Copy and share this link to give access to this user', })} ); diff --git a/packages/core/content-type-builder/admin/src/components/ContentTypeBuilderNav/index.js b/packages/core/content-type-builder/admin/src/components/ContentTypeBuilderNav/index.js index 3424d25af8..3108a7824f 100644 --- a/packages/core/content-type-builder/admin/src/components/ContentTypeBuilderNav/index.js +++ b/packages/core/content-type-builder/admin/src/components/ContentTypeBuilderNav/index.js @@ -39,7 +39,7 @@ const ContentTypeBuilderNav = () => { /> {menu.map(section => { - const title = `${section.title.id}${section.links.length > 1 ? 'plural' : 'singular'}`; + const title = section.title.id; return ( diff --git a/packages/core/content-type-builder/admin/src/components/ContentTypeBuilderNav/tests/__snapshots__/index.test.js.snap b/packages/core/content-type-builder/admin/src/components/ContentTypeBuilderNav/tests/__snapshots__/index.test.js.snap index 5e6b5b61a9..3f4ff8e852 100644 --- a/packages/core/content-type-builder/admin/src/components/ContentTypeBuilderNav/tests/__snapshots__/index.test.js.snap +++ b/packages/core/content-type-builder/admin/src/components/ContentTypeBuilderNav/tests/__snapshots__/index.test.js.snap @@ -597,7 +597,7 @@ exports[` renders and matches the snapshot 1`] = ` - content-type-builder.menu.section.models.name.plural + content-type-builder.menu.section.models.name.
renders and matches the snapshot 1`] = ` - content-type-builder.menu.section.single-types.name.singular + content-type-builder.menu.section.single-types.name.
renders and matches the snapshot 1`] = ` - content-type-builder.menu.section.components.name.plural + content-type-builder.menu.section.components.name.
{ { name: 'models', title: { - id: `${getTrad('menu.section.models.name.')}`, + id: `${getTrad('menu.section.models.name.plural')}`, defaultMessage: 'Collection Types', }, customLink: isInDevelopmentMode && { @@ -136,7 +136,7 @@ const useContentTypeBuilderMenu = () => { { name: 'singleTypes', title: { - id: `${getTrad('menu.section.single-types.name.')}`, + id: `${getTrad('menu.section.single-types.name.plural')}`, defaultMessage: 'Single Types', }, customLink: isInDevelopmentMode && { @@ -149,7 +149,7 @@ const useContentTypeBuilderMenu = () => { { name: 'components', title: { - id: `${getTrad('menu.section.components.name.')}`, + id: `${getTrad('menu.section.components.name.plural')}`, defaultMessage: 'Components', }, customLink: { diff --git a/packages/core/content-type-builder/admin/src/pages/ListView/index.js b/packages/core/content-type-builder/admin/src/pages/ListView/index.js index a1c919f51a..a27317a941 100644 --- a/packages/core/content-type-builder/admin/src/pages/ListView/index.js +++ b/packages/core/content-type-builder/admin/src/pages/ListView/index.js @@ -157,13 +157,13 @@ const ListView = () => { title={upperFirst(label)} subtitle={formatMessage({ id: getTrad('listView.headerLayout.description'), - defaultMessage: 'Build the data architecture of your content.', + defaultMessage: 'Build the data architecture of your content', })} navigationAction={ } to="/plugins/content-type-builder/"> {formatMessage({ id: 'app.components.go-back', - defaultMessage: 'Go back', + defaultMessage: 'Back', })} } diff --git a/packages/core/content-type-builder/admin/src/pages/ListView/tests/__snapshots__/index.test.js.snap b/packages/core/content-type-builder/admin/src/pages/ListView/tests/__snapshots__/index.test.js.snap index 4512045e8d..dbb83bda25 100644 --- a/packages/core/content-type-builder/admin/src/pages/ListView/tests/__snapshots__/index.test.js.snap +++ b/packages/core/content-type-builder/admin/src/pages/ListView/tests/__snapshots__/index.test.js.snap @@ -1216,7 +1216,7 @@ exports[` renders and matches the snapshot 1`] = ` - Go back + Back
@@ -1330,7 +1330,7 @@ exports[` renders and matches the snapshot 1`] = `

- Build the data architecture of your content. + Build the data architecture of your content

diff --git a/packages/core/content-type-builder/admin/src/translations/en.json b/packages/core/content-type-builder/admin/src/translations/en.json index 8f0f24969f..32b280af61 100644 --- a/packages/core/content-type-builder/admin/src/translations/en.json +++ b/packages/core/content-type-builder/admin/src/translations/en.json @@ -134,7 +134,7 @@ "form.button.single-type.description": "Best for single instance like about us, homepage, etc.", "form.contentType.divider.draft-publish": "Draft/Publish", "from": "from", - "listView.headerLayout.description": "Build the data architecture of your content.", + "listView.headerLayout.description": "Build the data architecture of your content", "menu.section.components.name.plural": "Components", "menu.section.components.name.singular": "Component", "menu.section.models.name.plural": "Collection Types", diff --git a/packages/core/email/admin/src/index.js b/packages/core/email/admin/src/index.js index 6875724d33..2101bdc1e2 100644 --- a/packages/core/email/admin/src/index.js +++ b/packages/core/email/admin/src/index.js @@ -24,7 +24,7 @@ export default { [ { intlLabel: { - id: getTrad('SettingsNav.link.settings'), + id: getTrad('Settings.email.plugin.title'), defaultMessage: 'Settings', }, id: 'settings', diff --git a/packages/core/email/admin/src/pages/Settings/components/Configuration.js b/packages/core/email/admin/src/pages/Settings/components/Configuration.js index 8fd0453bcf..9a16097e24 100644 --- a/packages/core/email/admin/src/pages/Settings/components/Configuration.js +++ b/packages/core/email/admin/src/pages/Settings/components/Configuration.js @@ -50,7 +50,7 @@ const Configuration = ({ config }) => { name="shipper-email" label={formatMessage({ id: getTrad('Settings.email.plugin.label.defaultFrom'), - defaultMessage: 'Default shipper email', + defaultMessage: 'Default sender email', })} placeholder={formatMessage({ id: getTrad('Settings.email.plugin.placeholder.defaultFrom'), diff --git a/packages/core/email/admin/src/pages/Settings/components/EmailHeader.js b/packages/core/email/admin/src/pages/Settings/components/EmailHeader.js index ec597e2e55..1e7f3a0986 100644 --- a/packages/core/email/admin/src/pages/Settings/components/EmailHeader.js +++ b/packages/core/email/admin/src/pages/Settings/components/EmailHeader.js @@ -12,18 +12,18 @@ const EmailHeader = () => { diff --git a/packages/core/email/admin/src/pages/Settings/index.js b/packages/core/email/admin/src/pages/Settings/index.js index c6345192ad..71265ff1af 100644 --- a/packages/core/email/admin/src/pages/Settings/index.js +++ b/packages/core/email/admin/src/pages/Settings/index.js @@ -43,6 +43,7 @@ const SettingsPage = () => { const [isLoading, setIsLoading] = useState(false); const [isSubmitting, setIsSubmitting] = useState(false); const [testAddress, setTestAddress] = useState(''); + const [isTestAddressValid, setIsTestAddressValid] = useState(false); const [config, setConfig] = useState({ provider: '', settings: { defaultFrom: '', defaultReplyTo: '', testAddress: '' }, @@ -87,6 +88,13 @@ const SettingsPage = () => { } }, [formErrors]); + useEffect(() => { + schema + .validate({ email: testAddress }, { abortEarly: false }) + .then(() => setIsTestAddressValid(true)) + .catch(() => setIsTestAddressValid(false)); + }, [testAddress]); + const handleChange = e => { setTestAddress(() => e.target.value); }; @@ -186,7 +194,7 @@ const SettingsPage = () => { onChange={handleChange} label={formatMessage({ id: getTrad('Settings.email.plugin.label.testAddress'), - defaultMessage: 'Test delivery email address', + defaultMessage: 'Recipient email', })} value={testAddress} error={ @@ -203,8 +211,13 @@ const SettingsPage = () => { /> -
diff --git a/packages/core/email/admin/src/pages/Settings/tests/index.test.js b/packages/core/email/admin/src/pages/Settings/tests/index.test.js index 46a6aaaa08..8939005ce7 100644 --- a/packages/core/email/admin/src/pages/Settings/tests/index.test.js +++ b/packages/core/email/admin/src/pages/Settings/tests/index.test.js @@ -42,7 +42,7 @@ describe('Email | Pages | Settings', () => { const { container } = render(App); await waitFor(() => { - expect(screen.getByText('Test delivery email address')).toBeInTheDocument(); + expect(screen.getByText('Recipient email')).toBeInTheDocument(); }); expect(container.firstChild).toMatchInlineSnapshot(` @@ -722,14 +722,14 @@ describe('Email | Pages | Settings', () => { class="c4" id="title" > - Email settings + Configuration

- Test the settings for the email plugin + Test the settings for the Email plugin

@@ -789,7 +789,7 @@ describe('Email | Pages | Settings', () => { class="c17" for="textinput-3" > - Default shipper email + Default sender email
{ class="c17" for="test-address-input" > - Test delivery email address + Recipient email
{ class="" >
diff --git a/packages/core/email/admin/src/translations/en.json b/packages/core/email/admin/src/translations/en.json index c96be6445e..e03f50f365 100644 --- a/packages/core/email/admin/src/translations/en.json +++ b/packages/core/email/admin/src/translations/en.json @@ -1,9 +1,9 @@ { - "Settings.email.plugin.button.test-email": "Test email", - "Settings.email.plugin.label.defaultFrom": "Default shipper email", + "Settings.email.plugin.button.test-email": "Send test email", + "Settings.email.plugin.label.defaultFrom": "Default sender email", "Settings.email.plugin.label.defaultReplyTo": "Default response email", "Settings.email.plugin.label.provider": "Email provider", - "Settings.email.plugin.label.testAddress": "Test delivery email address", + "Settings.email.plugin.label.testAddress": "Recipient email", "Settings.email.plugin.notification.config.error": "Failed to retrieve the email config", "Settings.email.plugin.notification.data.loaded": "Email settings data has been loaded", "Settings.email.plugin.notification.test.error": "Failed to send a test mail to {to}", @@ -11,11 +11,11 @@ "Settings.email.plugin.placeholder.defaultFrom": "ex: Strapi No-Reply ", "Settings.email.plugin.placeholder.defaultReplyTo": "ex: Strapi ", "Settings.email.plugin.placeholder.testAddress": "ex: developer@example.com", - "Settings.email.plugin.subTitle": "Test the settings for the email plugin", + "Settings.email.plugin.subTitle": "Test the settings for the Email plugin", "Settings.email.plugin.text.configuration": "The plugin is configured through the {file} file, checkout this {link} for the documentation.", - "Settings.email.plugin.title": "Email settings", + "Settings.email.plugin.title": "Configuration", "Settings.email.plugin.title.config": "Configuration", - "Settings.email.plugin.title.test": "Send a test email", + "Settings.email.plugin.title.test": "Send test email", "SettingsNav.link.settings": "Settings", "SettingsNav.section-label": "Email plugin", "components.Input.error.validation.email": "This is an invalid email" diff --git a/packages/core/helper-plugin/lib/src/components/DynamicTable/index.js b/packages/core/helper-plugin/lib/src/components/DynamicTable/index.js index 65bd6f79ac..83c9fdf43c 100644 --- a/packages/core/helper-plugin/lib/src/components/DynamicTable/index.js +++ b/packages/core/helper-plugin/lib/src/components/DynamicTable/index.js @@ -26,6 +26,7 @@ const Table = ({ children, contentType, components, + action, headers, isLoading, onConfirmDeleteAll, @@ -168,7 +169,12 @@ const Table = ({ withBulkActions={withBulkActions} /> {!rows.length || isLoading ? ( - + ) : ( Children.toArray(children).map(child => cloneElement(child, { @@ -206,6 +212,7 @@ Table.defaultProps = { ConfirmDialogDeleteAll: undefined, ConfirmDialogDelete: undefined, }, + action: undefined, headers: [], isLoading: false, onConfirmDeleteAll: () => {}, @@ -223,6 +230,7 @@ Table.propTypes = { ConfirmDialogDelete: PropTypes.oneOfType([PropTypes.func, PropTypes.element]), ConfirmDialogDeleteAll: PropTypes.oneOfType([PropTypes.func, PropTypes.element]), }), + action: PropTypes.node, headers: PropTypes.arrayOf( PropTypes.shape({ cellFormatter: PropTypes.func, diff --git a/packages/core/helper-plugin/lib/src/components/EmptyStateLayout/index.js b/packages/core/helper-plugin/lib/src/components/EmptyStateLayout/index.js index fc0130af18..9dc0626b32 100644 --- a/packages/core/helper-plugin/lib/src/components/EmptyStateLayout/index.js +++ b/packages/core/helper-plugin/lib/src/components/EmptyStateLayout/index.js @@ -34,7 +34,7 @@ EmptyStateLayout.defaultProps = { action: undefined, content: { id: 'app.components.EmptyStateLayout.content-document', - defaultMessage: "You don't have any content yet...", + defaultMessage: 'No content found', values: {}, }, hasRadius: true, diff --git a/packages/core/helper-plugin/lib/src/components/NoContent/index.js b/packages/core/helper-plugin/lib/src/components/NoContent/index.js index f5ee271c44..7e49bd40a5 100644 --- a/packages/core/helper-plugin/lib/src/components/NoContent/index.js +++ b/packages/core/helper-plugin/lib/src/components/NoContent/index.js @@ -22,7 +22,7 @@ const NoContent = ({ content, ...rest }) => { NoContent.defaultProps = { content: { id: 'app.components.EmptyStateLayout.content-document', - defaultMessage: "You don't have any content yet...", + defaultMessage: 'No content found', values: {}, }, }; diff --git a/packages/core/upload/admin/src/pages/SettingsPage/index.js b/packages/core/upload/admin/src/pages/SettingsPage/index.js index 151f87ce14..aa1ba65182 100644 --- a/packages/core/upload/admin/src/pages/SettingsPage/index.js +++ b/packages/core/upload/admin/src/pages/SettingsPage/index.js @@ -124,7 +124,7 @@ export const SettingsPage = () => { { } subtitle={formatMessage({ id: getTrad('settings.sub-header.label'), - defaultMessage: 'Configure the settings for the media library', + defaultMessage: 'Configure the settings for the Media Library', })} /> @@ -157,8 +157,8 @@ export const SettingsPage = () => { {formatMessage({ - id: getTrad('settings.section.image.label'), - defaultMessage: 'Image', + id: getTrad('settings.blockTitle'), + defaultMessage: 'Asset management', })} @@ -171,11 +171,11 @@ export const SettingsPage = () => { hint={formatMessage({ id: getTrad('settings.form.responsiveDimensions.description'), defaultMessage: - 'It automatically generates multiple formats (large, medium, small) of the uploaded asset', + 'Enabling this option will generate multiple formats (small, medium and large) of the uploaded asset.', })} label={formatMessage({ id: getTrad('settings.form.responsiveDimensions.label'), - defaultMessage: 'Enable responsive friendly upload', + defaultMessage: 'Responsive friendly upload', })} name="responsiveDimensions" offLabel={formatMessage({ @@ -198,9 +198,14 @@ export const SettingsPage = () => { aria-label="sizeOptimization" data-testid="sizeOptimization" checked={modifiedData.sizeOptimization} + hint={formatMessage({ + id: getTrad('settings.form.sizeOptimization.description'), + defaultMessage: + 'Enabling this option will optimize the file size without compromising on the quality.', + })} label={formatMessage({ id: getTrad('settings.form.sizeOptimization.label'), - defaultMessage: 'Enable size optimization (without quality loss)', + defaultMessage: 'Size optimization', })} name="sizeOptimization" offLabel={formatMessage({ @@ -226,11 +231,11 @@ export const SettingsPage = () => { hint={formatMessage({ id: getTrad('settings.form.autoOrientation.description'), defaultMessage: - 'Automatically rotate image according to EXIF orientation tag', + 'Enabling this option will automatically rotate the image according to EXIF orientation tag.', })} label={formatMessage({ id: getTrad('settings.form.autoOrientation.label'), - defaultMessage: 'Enable auto orientation', + defaultMessage: 'Auto orientation', })} name="autoOrientation" offLabel={formatMessage({ diff --git a/packages/core/upload/admin/src/pages/SettingsPage/tests/index.test.js b/packages/core/upload/admin/src/pages/SettingsPage/tests/index.test.js index fc387995cb..a29a1c218c 100644 --- a/packages/core/upload/admin/src/pages/SettingsPage/tests/index.test.js +++ b/packages/core/upload/admin/src/pages/SettingsPage/tests/index.test.js @@ -42,7 +42,9 @@ describe('Upload | SettingsPage', () => { await waitFor(() => expect( - getByText('Automatically rotate image according to EXIF orientation tag') + getByText( + 'Enabling this option will automatically rotate the image according to EXIF orientation tag.' + ) ).toBeInTheDocument() ); @@ -527,7 +529,7 @@ describe('Upload | SettingsPage', () => {

- Media Library - Settings + Media Library

diff --git a/packages/plugins/i18n/admin/src/components/ModalCreate/index.js b/packages/plugins/i18n/admin/src/components/ModalCreate/index.js index c97b54b50e..fdbae887ac 100644 --- a/packages/plugins/i18n/admin/src/components/ModalCreate/index.js +++ b/packages/plugins/i18n/admin/src/components/ModalCreate/index.js @@ -61,7 +61,7 @@ const ModalCreate = ({ onClose }) => { {formatMessage({ id: getTrad('Settings.list.actions.add'), - defaultMessage: 'Add a locale', + defaultMessage: 'Add new locale', })} diff --git a/packages/plugins/i18n/admin/src/translations/en.json b/packages/plugins/i18n/admin/src/translations/en.json index 075fca1252..163a8c9126 100644 --- a/packages/plugins/i18n/admin/src/translations/en.json +++ b/packages/plugins/i18n/admin/src/translations/en.json @@ -9,11 +9,11 @@ "CheckboxConfirmation.Modal.content": "Disabling localization will engender the deletion of all your content but the one associated to your default locale (if existing).", "Field.localized": "This value is unique for the selected locale", "Field.not-localized": "This value is common to all locales", - "Settings.list.actions.add": "Add a locale", + "Settings.list.actions.add": "Add new locale", "Settings.list.actions.delete": "Delete a locale", "Settings.list.actions.deleteAdditionalInfos": "This will delete the active locale versions (from Internationalization)", "Settings.list.actions.edit": "Edit a locale", - "Settings.list.description": "Configure the settings for the internationalization plugin", + "Settings.list.description": "Configure the settings for the Internationalization plugin", "Settings.list.empty.description": "This is not a usual behavior, meaning that you have eventually modified the database manually. Make sure to have at least one locale saved in your database in order to be able to use Strapi correctly.", "Settings.list.empty.title": "There are no locales.", "Settings.locales.list.sort.default": "Sort by the default locale", @@ -44,9 +44,10 @@ "Settings.locales.modal.locales.label": "Locales", "Settings.locales.modal.locales.loaded": "The locales have been successfully loaded.", "Settings.locales.modal.title": "Configurations", - "Settings.locales.row.default-locale": "Default", + "Settings.locales.row.default-locale": "Default locale", "Settings.locales.row.displayName": "Display name", "Settings.locales.row.id": "ID", + "Settings.locales.default": "Default", "Settings.permissions.loading": "Loading permissions", "Settings.permissions.read.denied.description": "In order to be able to read this, make sure to get in touch with the administrator of your system.", "Settings.permissions.read.denied.title": "You don't have the permissions to access this content.", diff --git a/packages/plugins/users-permissions/admin/src/pages/Roles/EditPage/index.js b/packages/plugins/users-permissions/admin/src/pages/Roles/EditPage/index.js index f7d9aaafe7..649f1c25a4 100644 --- a/packages/plugins/users-permissions/admin/src/pages/Roles/EditPage/index.js +++ b/packages/plugins/users-permissions/admin/src/pages/Roles/EditPage/index.js @@ -109,7 +109,7 @@ const EditPage = () => { } to="/settings/users-permissions/roles"> {formatMessage({ id: 'app.components.go-back', - defaultMessage: 'Go back', + defaultMessage: 'Back', })} } diff --git a/packages/plugins/users-permissions/admin/src/pages/Roles/EditPage/tests/index.test.js b/packages/plugins/users-permissions/admin/src/pages/Roles/EditPage/tests/index.test.js index 8fe674de6f..05a2ead9ad 100644 --- a/packages/plugins/users-permissions/admin/src/pages/Roles/EditPage/tests/index.test.js +++ b/packages/plugins/users-permissions/admin/src/pages/Roles/EditPage/tests/index.test.js @@ -1043,7 +1043,7 @@ describe('Admin | containers | RoleEditPage', () => { - Go back + Back
{locale.isDefault - ? formatMessage({ id: getTrad('Settings.locales.row.default-locale') }) + ? formatMessage({ id: getTrad('Settings.locales.default') }) : null}