diff --git a/src/categories/components/CategoryCreatePage/CategoryCreatePage.tsx b/src/categories/components/CategoryCreatePage/CategoryCreatePage.tsx index 91ebbb344..40e599784 100644 --- a/src/categories/components/CategoryCreatePage/CategoryCreatePage.tsx +++ b/src/categories/components/CategoryCreatePage/CategoryCreatePage.tsx @@ -10,7 +10,7 @@ import Form from "@saleor/components/Form"; import PageHeader from "@saleor/components/PageHeader"; import SaveButtonBar from "@saleor/components/SaveButtonBar"; import SeoForm from "@saleor/components/SeoForm"; -import { commonMessages, sectionNames } from "@saleor/intl"; +import { sectionNames } from "@saleor/intl"; import { UserError } from "../../../types"; import CategoryDetailsForm from "../../components/CategoryDetailsForm"; diff --git a/src/categories/components/CategoryUpdatePage/CategoryUpdatePage.tsx b/src/categories/components/CategoryUpdatePage/CategoryUpdatePage.tsx index ad8756128..f5fa5c3c4 100644 --- a/src/categories/components/CategoryUpdatePage/CategoryUpdatePage.tsx +++ b/src/categories/components/CategoryUpdatePage/CategoryUpdatePage.tsx @@ -1,6 +1,6 @@ import { RawDraftContentState } from "draft-js"; import React from "react"; -import { useIntl, FormattedMessage } from "react-intl"; +import { FormattedMessage, useIntl } from "react-intl"; import AppHeader from "@saleor/components/AppHeader"; import { CardSpacer } from "@saleor/components/CardSpacer"; @@ -11,6 +11,7 @@ import PageHeader from "@saleor/components/PageHeader"; import SaveButtonBar from "@saleor/components/SaveButtonBar"; import SeoForm from "@saleor/components/SeoForm"; import { Tab, TabContainer } from "@saleor/components/Tab"; +import { sectionNames } from "@saleor/intl"; import { maybe } from "../../../misc"; import { TabListActions, UserError } from "../../../types"; import CategoryDetailsForm from "../../components/CategoryDetailsForm"; @@ -121,7 +122,9 @@ export const CategoryUpdatePage: React.StatelessComponent< > {({ data, change, errors, submit, hasChanged }) => ( - {i18n.t("Categories")} + + {intl.formatMessage(sectionNames.categories)} + - Add category + Add category - Add category + Add category - Add category + Add category
- Add Category + Create New Category
- General information + General Informations
- Add search engine title and description to make this product easier to find + Add search engine title and description to make this category easier to find

@@ -13751,7 +13751,7 @@ exports[`Storyshots Views / Categories / Create category default 1`] = `
- Add Category + Create New Category
- General information + General Informations
- Add search engine title and description to make this product easier to find + Add search engine title and description to make this category easier to find

@@ -14225,7 +14225,7 @@ exports[`Storyshots Views / Categories / Update category default 1`] = ` - General information + General Informations
@@ -15080,7 +15080,7 @@ Ctrl + K" class="MuiTableCell-root-id MuiTableCell-head-id CategoryList-colProducts-id" scope="col" > - No. Products + No. Products @@ -15219,7 +15219,7 @@ exports[`Storyshots Views / Categories / Update category loading 1`] = ` - General information + General Informations
@@ -15635,7 +15635,7 @@ Ctrl + K" >
- No. Products + No. Products @@ -15962,7 +15962,7 @@ exports[`Storyshots Views / Categories / Update category no background 1`] = ` - General information + General Informations
@@ -16817,7 +16817,7 @@ Ctrl + K" class="MuiTableCell-root-id MuiTableCell-head-id CategoryList-colProducts-id" scope="col" > - No. Products + No. Products @@ -16951,7 +16951,7 @@ exports[`Storyshots Views / Categories / Update category no products 1`] = ` - General information + General Informations
@@ -17969,7 +17969,7 @@ exports[`Storyshots Views / Categories / Update category no subcategories 1`] = - General information + General Informations
@@ -18824,7 +18824,7 @@ Ctrl + K" class="MuiTableCell-root-id MuiTableCell-head-id CategoryList-colProducts-id" scope="col" > - No. Products + No. Products @@ -18958,7 +18958,7 @@ exports[`Storyshots Views / Categories / Update category products 1`] = ` - General information + General Informations