saleor-dashboard/src/giftCards/GiftCardsList/messages.ts
Dominik Żegleń 7d9441a7ec
Use esbuild-loader (#1983)
* Minor fixes for intl messages

* Add esbuild-loader
* switch from babel to esbuild-loader
* use formatjs enforce-id linter

* Generate ids for intl messages

* id format defined by idInterpolationPattern

* Modify intl messages extraction

* remove react-intl-translations-manager
* remove transpile-tx.js
* use formatjs cli

* Modify defaultMessages.json

* modify ids in defaultMessages.json with defined idInterpolationPattern

* Fix errors

* Fix page crash

* Use babel to transpile tests

* Fix useStateFromProps

* Improve render count

* Add test to useStateFromProps

* Fix reloading state buh

* Do not check if form with channels is dirty

* Stop blocking save if form has not changed

* Remove debug code

* Fix form disabling

* Fix variant selection checkbox onClick

* Update translations

* Update messages

* Use esbuild to build storybook

Co-authored-by: Bartłomiej Wiaduch <tukan2can@gmail.com>
Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
2022-05-05 09:54:28 +02:00

113 lines
3.2 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { defineMessages } from "react-intl";
export const giftCardsListHeaderMenuItemsMessages = defineMessages({
settings: {
id: "F69lwk",
defaultMessage: "Settings",
description: "settings menu item"
},
bulkIssue: {
id: "9hab/1",
defaultMessage: "Bulk Issue",
description: "bulk issue menu item"
},
exportCodes: {
id: "exvX+Z",
defaultMessage: "Export card codes",
description: "export card codes menu item"
},
issueButtonLabel: {
id: "RfPJ1E",
defaultMessage: "Issue card",
description: "issue card button label"
},
noGiftCardsAlertTitle: {
id: "E22x4H",
defaultMessage: "You havent defined a gift card product!",
description: "no card defuned alert message"
},
noGiftCardsProductsAndProductTypes: {
id: "U9o2bV",
defaultMessage:
"{createGiftCardProductType} and {giftCardProduct} to start selling gift cards in your store.",
description: "no gift card products and types alert message"
},
noGiftCardsProductTypes: {
id: "VI+X8H",
defaultMessage:
"{createGiftCardProductType} to start selling gift cards in your store.",
description: "no gift card product types alert message"
},
noGiftCardsProducts: {
id: "jmh0rV",
defaultMessage:
"{createGiftCardProduct} to start selling gift cards in your store.",
description: "no gift card products alert message"
},
createGiftCardProductType: {
id: "8Hq18g",
defaultMessage: "Create a gift card product type",
description: "create gift card product type alert message"
},
createGiftCardProduct: {
id: "HqeqEV",
defaultMessage: "Create a gift card product",
description: "create gift card product alert message"
},
giftCardProduct: {
id: "AJgl5u",
defaultMessage: "gift card product",
description: "gift card product message"
}
});
export const giftCardsListTableMessages = defineMessages({
giftCardsTableColumnGiftCardTitle: {
id: "eLJQSh",
defaultMessage: "Gift Card",
description: "column title gift card"
},
giftCardsTableColumnTagTitle: {
id: "FEWgh/",
defaultMessage: "Tag",
description: "column title tag"
},
giftCardsTableColumnProductTitle: {
id: "bwJc6V",
defaultMessage: "Product",
description: "column title product"
},
giftCardsTableColumnCustomerTitle: {
id: "MJBAqv",
defaultMessage: "Used by",
description: "column title used by/customer"
},
giftCardsTableColumnBalanceTitle: {
id: "MbZHXE",
defaultMessage: "Balance",
description: "column title balance"
},
codeEndingWithLabel: {
id: "38dS1A",
defaultMessage: "Code ending with {last4CodeChars}",
description: "code ending with label"
},
noGiftCardsFound: {
id: "Rd0s80",
defaultMessage: "No gift cards found",
description: "no cards found title message"
}
});
export const giftCardUpdateFormMessages = defineMessages({
giftCardInvalidExpiryDateHeader: {
id: "l1/Hwb",
defaultMessage: "Incorrect date entered",
description: "invalid date in expirydate field header"
},
giftCardInvalidExpiryDateContent: {
id: "rCy3Fe",
defaultMessage: "Gift Card with past expiration date cannot be created",
description: "invalid date in expirydate field content"
}
});