Update messages
This commit is contained in:
parent
c6c997a98f
commit
15f9535ca6
8 changed files with 43 additions and 27 deletions
|
@ -1,6 +1,6 @@
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"POT-Creation-Date: 2019-11-07T13:40:04.787Z\n"
|
"POT-Creation-Date: 2019-11-07T13:41:50.654Z\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
|
@ -623,6 +623,14 @@ msgctxt "product attribute error"
|
||||||
msgid "All attributes should have value"
|
msgid "All attributes should have value"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: build/locale/src/webhooks/components/WebhookEvents/WebhookEvents.json
|
||||||
|
#. [src.webhooks.components.WebhookEvents.2454751033] - event
|
||||||
|
#. defaultMessage is:
|
||||||
|
#. All events
|
||||||
|
msgctxt "event"
|
||||||
|
msgid "All events"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: build/locale/src/taxes/components/TaxConfiguration/TaxConfiguration.json
|
#: build/locale/src/taxes/components/TaxConfiguration/TaxConfiguration.json
|
||||||
#. [src.taxes.components.TaxConfiguration.142803418]
|
#. [src.taxes.components.TaxConfiguration.142803418]
|
||||||
#. defaultMessage is:
|
#. defaultMessage is:
|
||||||
|
@ -663,14 +671,6 @@ msgctxt "description"
|
||||||
msgid "Anonymous user"
|
msgid "Anonymous user"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: build/locale/src/webhooks/components/WebhookEvents/WebhookEvents.json
|
|
||||||
#. [src.webhooks.components.WebhookEvents.3053363669] - event
|
|
||||||
#. defaultMessage is:
|
|
||||||
#. Any events
|
|
||||||
msgctxt "event"
|
|
||||||
msgid "Any events"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: build/locale/src/discounts/components/VoucherSummary/VoucherSummary.json
|
#: build/locale/src/discounts/components/VoucherSummary/VoucherSummary.json
|
||||||
#. [src.discounts.components.VoucherSummary.2735425668] - voucher
|
#. [src.discounts.components.VoucherSummary.2735425668] - voucher
|
||||||
#. defaultMessage is:
|
#. defaultMessage is:
|
||||||
|
@ -1080,11 +1080,11 @@ msgid "Are you sure you want to delete {voucherCode}?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: build/locale/src/orders/components/OrderDraftFinalizeDialog/OrderDraftFinalizeDialog.json
|
#: build/locale/src/orders/components/OrderDraftFinalizeDialog/OrderDraftFinalizeDialog.json
|
||||||
#. [src.orders.components.OrderDraftFinalizeDialog.1489195029]
|
#. [src.orders.components.OrderDraftFinalizeDialog.3358029330]
|
||||||
#. defaultMessage is:
|
#. defaultMessage is:
|
||||||
#. Are you sure you want to finalize draft #{number}?
|
#. Are you sure you want to finalize draft #{orderNumber}?
|
||||||
msgctxt "description"
|
msgctxt "description"
|
||||||
msgid "Are you sure you want to finalize draft #{number}?"
|
msgid "Are you sure you want to finalize draft #{orderNumber}?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: build/locale/src/orders/components/OrderMarkAsPaidDialog/OrderMarkAsPaidDialog.json
|
#: build/locale/src/orders/components/OrderMarkAsPaidDialog/OrderMarkAsPaidDialog.json
|
||||||
|
@ -1136,11 +1136,11 @@ msgid "Are you sure you want to unassign {attributeName} from {productTypeName}?
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: build/locale/src/productTypes/components/ProductTypeBulkAttributeUnassignDialog/ProductTypeBulkAttributeUnassignDialog.json
|
#: build/locale/src/productTypes/components/ProductTypeBulkAttributeUnassignDialog/ProductTypeBulkAttributeUnassignDialog.json
|
||||||
#. [src.productTypes.components.ProductTypeBulkAttributeUnassignDialog.600602031] - unassign multiple attributes from product type
|
#. [src.productTypes.components.ProductTypeBulkAttributeUnassignDialog.1465383223] - unassign multiple attributes from product type
|
||||||
#. defaultMessage is:
|
#. defaultMessage is:
|
||||||
#. Are you sure you want to unassign {counter,plural,one{this attribute} other{{displayQuantity} attributes}} from {productTypeName}?
|
#. Are you sure you want to unassign {counter,plural,one{this attribute} other{{attributeQuantity} attributes}} from {productTypeName}?
|
||||||
msgctxt "unassign multiple attributes from product type"
|
msgctxt "unassign multiple attributes from product type"
|
||||||
msgid "Are you sure you want to unassign {counter,plural,one{this attribute} other{{displayQuantity} attributes}} from {productTypeName}?"
|
msgid "Are you sure you want to unassign {counter,plural,one{this attribute} other{{attributeQuantity} attributes}} from {productTypeName}?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: build/locale/src/discounts/views/SaleDetails.json
|
#: build/locale/src/discounts/views/SaleDetails.json
|
||||||
|
@ -5507,6 +5507,14 @@ msgctxt "description"
|
||||||
msgid "Order draft succesfully created"
|
msgid "Order draft succesfully created"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: build/locale/src/webhooks/components/WebhookEvents/WebhookEvents.json
|
||||||
|
#. [src.webhooks.components.WebhookEvents.3907151399] - event
|
||||||
|
#. defaultMessage is:
|
||||||
|
#. Order fulfilled
|
||||||
|
msgctxt "event"
|
||||||
|
msgid "Order fulfilled"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: build/locale/src/webhooks/components/WebhookEvents/WebhookEvents.json
|
#: build/locale/src/webhooks/components/WebhookEvents/WebhookEvents.json
|
||||||
#. [src.webhooks.components.WebhookEvents.3345061702] - event
|
#. [src.webhooks.components.WebhookEvents.3345061702] - event
|
||||||
#. defaultMessage is:
|
#. defaultMessage is:
|
||||||
|
|
|
@ -11,10 +11,10 @@ import { commonMessages } from "@saleor/intl";
|
||||||
|
|
||||||
const useStyles = makeStyles(
|
const useStyles = makeStyles(
|
||||||
theme => ({
|
theme => ({
|
||||||
|
errorText: {
|
||||||
|
color: theme.palette.error.contrastText
|
||||||
|
},
|
||||||
panel: {
|
panel: {
|
||||||
"& span": {
|
|
||||||
color: theme.palette.error.contrastText
|
|
||||||
},
|
|
||||||
background: theme.palette.error.main,
|
background: theme.palette.error.main,
|
||||||
borderRadius: theme.spacing(),
|
borderRadius: theme.spacing(),
|
||||||
marginBottom: theme.spacing(3),
|
marginBottom: theme.spacing(3),
|
||||||
|
@ -50,7 +50,9 @@ const ResetPasswordPage: React.FC<ResetPasswordPageProps> = props => {
|
||||||
<>
|
<>
|
||||||
{!!error && (
|
{!!error && (
|
||||||
<div className={classes.panel}>
|
<div className={classes.panel}>
|
||||||
<Typography variant="caption">{error}</Typography>
|
<Typography variant="caption" className={classes.errorText}>
|
||||||
|
{error}
|
||||||
|
</Typography>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<Typography>
|
<Typography>
|
||||||
|
|
|
@ -55,7 +55,7 @@ const ActionDialog: React.FC<ActionDialogProps> = props => {
|
||||||
const intl = useIntl();
|
const intl = useIntl();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Dialog onClose={onClose} open={open} {...rest}>
|
<Dialog fullWidth onClose={onClose} open={open} {...rest}>
|
||||||
<DialogTitle>{title}</DialogTitle>
|
<DialogTitle>{title}</DialogTitle>
|
||||||
<DialogContent>{children}</DialogContent>
|
<DialogContent>{children}</DialogContent>
|
||||||
<DialogActions>
|
<DialogActions>
|
||||||
|
|
|
@ -24,14 +24,15 @@ const useStyles = makeStyles(
|
||||||
display: "flex",
|
display: "flex",
|
||||||
height: "38px",
|
height: "38px",
|
||||||
justifyContent: "space-around",
|
justifyContent: "space-around",
|
||||||
margin: theme.spacing(2, 1),
|
margin: theme.spacing(0, 1, 2),
|
||||||
marginLeft: 0,
|
marginLeft: 0,
|
||||||
padding: theme.spacing(0, 2)
|
padding: theme.spacing(0, 2)
|
||||||
},
|
},
|
||||||
filterChipContainer: {
|
filterChipContainer: {
|
||||||
display: "flex",
|
display: "flex",
|
||||||
flex: 1,
|
flex: 1,
|
||||||
flexWrap: "wrap"
|
flexWrap: "wrap",
|
||||||
|
paddingTop: theme.spacing(2)
|
||||||
},
|
},
|
||||||
filterContainer: {
|
filterContainer: {
|
||||||
"& a": {
|
"& a": {
|
||||||
|
|
|
@ -94,7 +94,7 @@ const OrderDraftFinalizeDialog: React.FC<OrderDraftFinalizeDialogProps> = ({
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
defaultMessage="Are you sure you want to finalize draft #{number}?"
|
defaultMessage="Are you sure you want to finalize draft #{orderNumber}?"
|
||||||
values={{
|
values={{
|
||||||
orderNumber
|
orderNumber
|
||||||
}}
|
}}
|
||||||
|
|
|
@ -39,7 +39,7 @@ const ProductTypeBulkAttributeUnassignDialog: React.FC<
|
||||||
>
|
>
|
||||||
<DialogContentText>
|
<DialogContentText>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
defaultMessage="Are you sure you want to unassign {counter,plural,one{this attribute} other{{displayQuantity} attributes}} from {productTypeName}?"
|
defaultMessage="Are you sure you want to unassign {counter,plural,one{this attribute} other{{attributeQuantity} attributes}} from {productTypeName}?"
|
||||||
description="unassign multiple attributes from product type"
|
description="unassign multiple attributes from product type"
|
||||||
values={{
|
values={{
|
||||||
attributeQuantity: <strong>{attributeQuantity}</strong>,
|
attributeQuantity: <strong>{attributeQuantity}</strong>,
|
||||||
|
|
|
@ -27,9 +27,9 @@ const WebhookEvents: React.FC<WebhookEventsProps> = ({
|
||||||
const intl = useIntl();
|
const intl = useIntl();
|
||||||
const eventsEnum = Object.values(WebhookEventTypeEnum);
|
const eventsEnum = Object.values(WebhookEventTypeEnum);
|
||||||
|
|
||||||
const translatedEvents = {
|
const translatedEvents: Record<WebhookEventTypeEnum, string> = {
|
||||||
[WebhookEventTypeEnum.ANY_EVENTS]: intl.formatMessage({
|
[WebhookEventTypeEnum.ANY_EVENTS]: intl.formatMessage({
|
||||||
defaultMessage: "Any events",
|
defaultMessage: "All events",
|
||||||
description: "event"
|
description: "event"
|
||||||
}),
|
}),
|
||||||
[WebhookEventTypeEnum.CUSTOMER_CREATED]: intl.formatMessage({
|
[WebhookEventTypeEnum.CUSTOMER_CREATED]: intl.formatMessage({
|
||||||
|
@ -44,6 +44,10 @@ const WebhookEvents: React.FC<WebhookEventsProps> = ({
|
||||||
defaultMessage: "Order created",
|
defaultMessage: "Order created",
|
||||||
description: "event"
|
description: "event"
|
||||||
}),
|
}),
|
||||||
|
[WebhookEventTypeEnum.ORDER_FULFILLED]: intl.formatMessage({
|
||||||
|
defaultMessage: "Order fulfilled",
|
||||||
|
description: "event"
|
||||||
|
}),
|
||||||
[WebhookEventTypeEnum.ORDER_FULLY_PAID]: intl.formatMessage({
|
[WebhookEventTypeEnum.ORDER_FULLY_PAID]: intl.formatMessage({
|
||||||
defaultMessage: "Order fully paid",
|
defaultMessage: "Order fully paid",
|
||||||
description: "event"
|
description: "event"
|
||||||
|
|
|
@ -3,6 +3,7 @@ import React from "react";
|
||||||
|
|
||||||
import Decorator from "@saleor/storybook/Decorator";
|
import Decorator from "@saleor/storybook/Decorator";
|
||||||
import { WebhookErrorCode } from "@saleor/types/globalTypes";
|
import { WebhookErrorCode } from "@saleor/types/globalTypes";
|
||||||
|
import { webhook } from "../../fixtures";
|
||||||
import WebhooksDetailsPage, {
|
import WebhooksDetailsPage, {
|
||||||
WebhooksDetailsPageProps
|
WebhooksDetailsPageProps
|
||||||
} from "./WebhooksDetailsPage";
|
} from "./WebhooksDetailsPage";
|
||||||
|
@ -16,7 +17,7 @@ const props: WebhooksDetailsPageProps = {
|
||||||
onSubmit: () => undefined,
|
onSubmit: () => undefined,
|
||||||
saveButtonBarState: "default",
|
saveButtonBarState: "default",
|
||||||
services: [],
|
services: [],
|
||||||
webhook: null
|
webhook
|
||||||
};
|
};
|
||||||
storiesOf("Views / Webhooks / Webhook details", module)
|
storiesOf("Views / Webhooks / Webhook details", module)
|
||||||
.addDecorator(Decorator)
|
.addDecorator(Decorator)
|
||||||
|
|
Loading…
Reference in a new issue