Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix typos and messages system tense
Krzysztof Bialoglowicz8e810f6e1ef5
diff --git a/saleor/static/dashboard-next/components/AppLayout/menuStructure.ts b/saleor/static/dashboard-next/components/AppLayout/menuStructure.tsindex 81ea796e8a..9d45bbc617 100644--- a/saleor/static/dashboard-next/components/AppLayout/menuStructure.ts+++ b/saleor/static/dashboard-next/components/AppLayout/menuStructure.ts@@ -41,7 +41,7 @@ const menuStructure: IMenuItem[] = [url: collectionListUrl()}],- label: i18n.t("Catalogue", { context: "Menu label" }),+ label: i18n.t("Catalog", { context: "Menu label" }),permission: PermissionEnum.MANAGE_PRODUCTS},{diff --git a/saleor/static/dashboard-next/discounts/components/SaleInfo/SaleInfo.tsx b/saleor/static/dashboard-next/discounts/components/SaleInfo/SaleInfo.tsxindex 59a7144f0f..04adea0e1d 100644--- a/saleor/static/dashboard-next/discounts/components/SaleInfo/SaleInfo.tsx+++ b/saleor/static/dashboard-next/discounts/components/SaleInfo/SaleInfo.tsx@@ -42,7 +42,7 @@ const SaleInfo = withStyles(styles, {onChange}: SaleInfoProps & WithStyles<typeof styles>) => (<Card>- <CardTitle title={i18n.t("General Informations")} />+ <CardTitle title={i18n.t("General Information")} /><CardContent className={classes.root}><TextFielddisabled={disabled}diff --git a/saleor/static/dashboard-next/discounts/components/VoucherInfo/VoucherInfo.tsx b/saleor/static/dashboard-next/discounts/components/VoucherInfo/VoucherInfo.tsxindex 1694925ac7..552df183f8 100644--- a/saleor/static/dashboard-next/discounts/components/VoucherInfo/VoucherInfo.tsx+++ b/saleor/static/dashboard-next/discounts/components/VoucherInfo/VoucherInfo.tsx@@ -57,7 +57,7 @@ const VoucherInfo = withStyles(styles, {return (<Card>- <CardTitle title={i18n.t("General Informations")} />+ <CardTitle title={i18n.t("General Information")} /><CardContent><TextFieldclassName={classes.nameInput}diff --git a/saleor/static/dashboard-next/discounts/components/VoucherOptions/VoucherOptions.tsx b/saleor/static/dashboard-next/discounts/components/VoucherOptions/VoucherOptions.tsxindex a553673e16..c844a5ea05 100644--- a/saleor/static/dashboard-next/discounts/components/VoucherOptions/VoucherOptions.tsx+++ b/saleor/static/dashboard-next/discounts/components/VoucherOptions/VoucherOptions.tsx@@ -56,7 +56,7 @@ const VoucherOptions = withStyles(styles, {onChange}: VoucherOptionsProps & WithStyles<typeof styles>) => (<Card>- <CardTitle title={i18n.t("Detailed Informations")} />+ <CardTitle title={i18n.t("Detailed Information")} /><CardContent className={classes.root}><TextFieldWithChoicedisabled={disabled}diff --git a/saleor/static/dashboard-next/home/components/HomeActivityCard/activityMessages.ts b/saleor/static/dashboard-next/home/components/HomeActivityCard/activityMessages.tsindex b8d3e6f3ee..b195ccdc2b 100644--- a/saleor/static/dashboard-next/home/components/HomeActivityCard/activityMessages.ts+++ b/saleor/static/dashboard-next/home/components/HomeActivityCard/activityMessages.ts@@ -5,16 +5,16 @@ import { Home_activities_edges_node } from "../../types/Home";export const getActivityMessage = (activity: Home_activities_edges_node) => {switch (activity.type) {case OrderEventsEnum.ORDER_FULLY_PAID:- return i18n.t("Order #{{ orderId }} had been fully paid", {+ return i18n.t("Order #{{ orderId }} was fully paid", {orderId: activity.orderNumber});case OrderEventsEnum.PLACED:- return i18n.t("Order #{{ orderId }} had been placed", {+ return i18n.t("Order #{{ orderId }} was placed", {orderId: activity.orderNumber});case OrderEventsEnum.PLACED_FROM_DRAFT:return i18n.t(- "Order #{{ orderId }} had been placed from draft by {{ user }}",+ "Order #{{ orderId }} was placed from draft by {{ user }}",{orderId: activity.orderNumber,user: activity.user.emaildiff --git a/saleor/static/dashboard-next/home/components/HomeHeader/HomeHeader.tsx b/saleor/static/dashboard-next/home/components/HomeHeader/HomeHeader.tsxindex a00a07032f..808088f067 100644--- a/saleor/static/dashboard-next/home/components/HomeHeader/HomeHeader.tsx+++ b/saleor/static/dashboard-next/home/components/HomeHeader/HomeHeader.tsx@@ -40,7 +40,7 @@ const HomeOrdersCard = withStyles(styles, { name: "HomeOrdersCard" })(</Typography><Typography className={classes.subtitle}>{userName ? (- i18n.t("Here are some information we gathered about your store")+ i18n.t("Here is some information we gathered about your store")) : (<Skeleton style={{ width: "10em" }} />)}diff --git a/saleor/static/dashboard-next/navigation/components/MenuProperties/MenuProperties.tsx b/saleor/static/dashboard-next/navigation/components/MenuProperties/MenuProperties.tsxindex 1b31eec318..333433bdac 100644--- a/saleor/static/dashboard-next/navigation/components/MenuProperties/MenuProperties.tsx+++ b/saleor/static/dashboard-next/navigation/components/MenuProperties/MenuProperties.tsx@@ -19,7 +19,7 @@ const MenuProperties: React.StatelessComponent<MenuPropertiesProps> = ({onChange}) => (<Card>- <CardTitle title={i18n.t("General Informations")} />+ <CardTitle title={i18n.t("General Information")} /><CardContent><TextFielddisabled={disabled}diff --git a/saleor/static/dashboard-next/orders/components/OrderHistory/OrderHistory.tsx b/saleor/static/dashboard-next/orders/components/OrderHistory/OrderHistory.tsxindex cc162f53db..1c32e6f9e6 100644--- a/saleor/static/dashboard-next/orders/components/OrderHistory/OrderHistory.tsx+++ b/saleor/static/dashboard-next/orders/components/OrderHistory/OrderHistory.tsx@@ -17,7 +17,10 @@ import {TimelineNote} from "../../../components/Timeline";import i18n from "../../../i18n";-import { OrderEventsEmailsEnum, OrderEventsEnum } from "../../../types/globalTypes";+import {+ OrderEventsEmailsEnum,+ OrderEventsEnum+} from "../../../types/globalTypes";import { OrderDetails_order_events } from "../../types/OrderDetails";export interface FormData {@@ -27,50 +30,50 @@ export interface FormData {const getEventMessage = (event: OrderDetails_order_events) => {switch (event.type) {case OrderEventsEnum.CANCELED:- return i18n.t("Order has been cancelled", {+ return i18n.t("Order was cancelled", {context: "order history message"});case OrderEventsEnum.DRAFT_ADDED_PRODUCTS:- return i18n.t("Products have been added to draft order", {+ return i18n.t("Products were added to draft order", {context: "order history message"});case OrderEventsEnum.DRAFT_CREATED:- return i18n.t("Draft order has been created", {+ return i18n.t("Draft order was created", {context: "order history message"});case OrderEventsEnum.DRAFT_REMOVED_PRODUCTS:- return i18n.t("Products have been removed from draft order", {+ return i18n.t("Products were removed from draft order", {context: "order history message"});case OrderEventsEnum.EMAIL_SENT:switch (event.emailType) {case OrderEventsEmailsEnum.DIGITAL_LINKS:- return i18n.t("Links to the order's digital goods have been sent", {+ return i18n.t("Links to the order's digital goods were sent", {context: "order history message"});case OrderEventsEmailsEnum.FULFILLMENT_CONFIRMATION:- return i18n.t("Fulfillment confirmation has been sent to customer", {+ return i18n.t("Fulfillment confirmation was sent to customer", {context: "order history message"});case OrderEventsEmailsEnum.ORDER_CONFIRMATION:- return i18n.t("Order confirmation has been sent to customer", {+ return i18n.t("Order confirmation was sent to customer", {context: "order history message"});case OrderEventsEmailsEnum.PAYMENT_CONFIRMATION:- return i18n.t("Payment confirmation has been sent to customer", {+ return i18n.t("Payment confirmation was sent to customer", {context: "order history message"});case OrderEventsEmailsEnum.SHIPPING_CONFIRMATION:- return i18n.t("Shipping details has been sent to customer", {+ return i18n.t("Shipping details was sent to customer", {context: "order history message"});case OrderEventsEmailsEnum.TRACKING_UPDATED:- return i18n.t("Shipping tracking number has been sent to customer", {+ return i18n.t("Shipping tracking number was sent to customer", {context: "order history message"});}case OrderEventsEnum.FULFILLMENT_CANCELED:- return i18n.t("Fulfillment has been cancelled", {+ return i18n.t("Fulfillment was cancelled", {context: "order history message"});case OrderEventsEnum.FULFILLMENT_FULFILLED_ITEMS:@@ -84,11 +87,11 @@ const getEventMessage = (event: OrderDetails_order_events) => {quantity: event.quantity});case OrderEventsEnum.NOTE_ADDED:- return i18n.t("Note has been added to the order", {+ return i18n.t("Note was added to the order", {context: "order history message"});case OrderEventsEnum.ORDER_FULLY_PAID:- return i18n.t("Order has been fully paid", {+ return i18n.t("Order was fully paid", {context: "order history message"});case OrderEventsEnum.ORDER_MARKED_AS_PAID:@@ -103,7 +106,7 @@ const getEventMessage = (event: OrderDetails_order_events) => {quantity: event.quantity});case OrderEventsEnum.PAYMENT_CAPTURED:- return i18n.t("Payment has been captured", {+ return i18n.t("Payment was captured", {context: "order history message"});case OrderEventsEnum.PAYMENT_FAILED:@@ -111,19 +114,19 @@ const getEventMessage = (event: OrderDetails_order_events) => {context: "order history message"});case OrderEventsEnum.PAYMENT_REFUNDED:- return i18n.t("Payment has been refunded", {+ return i18n.t("Payment was refunded", {context: "order history message"});case OrderEventsEnum.PAYMENT_VOIDED:- return i18n.t("Payment has been voided", {+ return i18n.t("Payment was voided", {context: "order history message"});case OrderEventsEnum.PLACED:- return i18n.t("Order has been placed", {+ return i18n.t("Order was placed", {context: "order history message"});case OrderEventsEnum.PLACED_FROM_DRAFT:- return i18n.t("Order has been created from draft", {+ return i18n.t("Order was created from draft", {context: "order history message"});case OrderEventsEnum.TRACKING_UPDATED:@@ -131,7 +134,7 @@ const getEventMessage = (event: OrderDetails_order_events) => {context: "order history message"});case OrderEventsEnum.UPDATED_ADDRESS:- return i18n.t("Order address has been updated", {+ return i18n.t("Order address was updated", {context: "order history message"});}diff --git a/saleor/static/dashboard-next/pages/components/PageInfo/PageInfo.tsx b/saleor/static/dashboard-next/pages/components/PageInfo/PageInfo.tsxindex 8ceb0d679d..39945e5246 100644--- a/saleor/static/dashboard-next/pages/components/PageInfo/PageInfo.tsx+++ b/saleor/static/dashboard-next/pages/components/PageInfo/PageInfo.tsx@@ -39,7 +39,7 @@ const PageInfo = withStyles(styles, {onChange}: PageInfoProps & WithStyles<typeof styles>) => (<Card className={classes.root}>- <CardTitle title={i18n.t("General Informations")} />+ <CardTitle title={i18n.t("General Information")} /><CardContent><TextFielddisabled={disabled}diff --git a/saleor/static/dashboard-next/products/components/ProductVariants/ProductVariants.tsx b/saleor/static/dashboard-next/products/components/ProductVariants/ProductVariants.tsxindex 7fe50e2ded..f625c607ce 100644--- a/saleor/static/dashboard-next/products/components/ProductVariants/ProductVariants.tsx+++ b/saleor/static/dashboard-next/products/components/ProductVariants/ProductVariants.tsx@@ -104,7 +104,7 @@ export const ProductVariants = withStyles(styles, { name: "ProductVariants" })(<CardContent><Typography>{i18n.t(- "Use variants for products that come in a variety of version for example different sizes or colors"+ "Use variants for products that come in a variety of versions for example different sizes or colors")}</Typography></CardContent>