2021-04-29 08:58:03 +00:00
|
|
|
|
import React from "react";
|
|
|
|
|
import { defineMessages } from "react-intl";
|
|
|
|
|
|
|
|
|
|
export const messages = defineMessages({
|
|
|
|
|
attributeLabel: {
|
2022-05-05 07:54:28 +00:00
|
|
|
|
id: "xOEZjV",
|
2021-04-29 08:58:03 +00:00
|
|
|
|
defaultMessage: "Default Label",
|
2022-06-21 09:36:55 +00:00
|
|
|
|
description: "attribute's label",
|
2021-04-29 08:58:03 +00:00
|
|
|
|
},
|
|
|
|
|
attributeSlug: {
|
2022-05-05 07:54:28 +00:00
|
|
|
|
id: "P79U4b",
|
2021-04-29 08:58:03 +00:00
|
|
|
|
defaultMessage: "Attribute Code",
|
2022-06-21 09:36:55 +00:00
|
|
|
|
description: "attribute's slug short code label",
|
2021-04-29 08:58:03 +00:00
|
|
|
|
},
|
|
|
|
|
attributeSlugHelperText: {
|
2022-05-05 07:54:28 +00:00
|
|
|
|
id: "Q7uuDr",
|
2021-04-29 08:58:03 +00:00
|
|
|
|
defaultMessage: "This is used internally. Make sure you don’t use spaces",
|
2022-06-21 09:36:55 +00:00
|
|
|
|
description: "attribute slug input field helper text",
|
2021-04-29 08:58:03 +00:00
|
|
|
|
},
|
|
|
|
|
entityType: {
|
2022-05-05 07:54:28 +00:00
|
|
|
|
id: "LnRlch",
|
2021-04-29 08:58:03 +00:00
|
|
|
|
defaultMessage: "Entity",
|
2022-06-21 09:36:55 +00:00
|
|
|
|
description: "attribute's editor component entity",
|
2021-04-29 08:58:03 +00:00
|
|
|
|
},
|
|
|
|
|
inputType: {
|
2022-05-05 07:54:28 +00:00
|
|
|
|
id: "oIvtua",
|
2021-04-29 08:58:03 +00:00
|
|
|
|
defaultMessage: "Catalog Input type for Store Owner",
|
2022-06-21 09:36:55 +00:00
|
|
|
|
description: "attribute's editor component",
|
2021-04-29 08:58:03 +00:00
|
|
|
|
},
|
|
|
|
|
valueRequired: {
|
2022-05-05 07:54:28 +00:00
|
|
|
|
id: "njBulj",
|
2021-04-29 08:58:03 +00:00
|
|
|
|
defaultMessage: "Value Required",
|
2022-06-21 09:36:55 +00:00
|
|
|
|
description: "check to require attribute to have value",
|
2021-04-29 08:58:03 +00:00
|
|
|
|
},
|
|
|
|
|
selectUnit: {
|
2022-05-05 07:54:28 +00:00
|
|
|
|
id: "PiSXjb",
|
2021-04-29 08:58:03 +00:00
|
|
|
|
defaultMessage: "Select unit",
|
2022-06-21 09:36:55 +00:00
|
|
|
|
description: "check to require numeric attribute unit",
|
2021-04-29 08:58:03 +00:00
|
|
|
|
},
|
|
|
|
|
unitSystem: {
|
2022-05-05 07:54:28 +00:00
|
|
|
|
id: "ghje1I",
|
2021-04-29 08:58:03 +00:00
|
|
|
|
defaultMessage: "System",
|
2022-06-21 09:36:55 +00:00
|
|
|
|
description: "numeric attribute unit system",
|
2021-04-29 08:58:03 +00:00
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
unitOf: {
|
2022-05-05 07:54:28 +00:00
|
|
|
|
id: "zWM89r",
|
2021-04-29 08:58:03 +00:00
|
|
|
|
defaultMessage: "Units of",
|
2022-06-21 09:36:55 +00:00
|
|
|
|
description: "numeric attribute units of",
|
2021-04-29 08:58:03 +00:00
|
|
|
|
},
|
|
|
|
|
unit: {
|
2022-05-05 07:54:28 +00:00
|
|
|
|
id: "Orgqv4",
|
2021-04-29 08:58:03 +00:00
|
|
|
|
defaultMessage: "Unit",
|
2022-06-21 09:36:55 +00:00
|
|
|
|
description: "numeric attribute unit",
|
|
|
|
|
},
|
2021-04-29 08:58:03 +00:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
export const inputTypeMessages = defineMessages({
|
|
|
|
|
dropdown: {
|
2022-05-05 07:54:28 +00:00
|
|
|
|
id: "bZksto",
|
2021-04-29 08:58:03 +00:00
|
|
|
|
defaultMessage: "Dropdown",
|
2022-06-21 09:36:55 +00:00
|
|
|
|
description: "product attribute type",
|
2021-04-29 08:58:03 +00:00
|
|
|
|
},
|
|
|
|
|
file: {
|
2022-05-05 07:54:28 +00:00
|
|
|
|
id: "z1y9oL",
|
2021-04-29 08:58:03 +00:00
|
|
|
|
defaultMessage: "File",
|
2022-06-21 09:36:55 +00:00
|
|
|
|
description: "file attribute type",
|
2021-04-29 08:58:03 +00:00
|
|
|
|
},
|
|
|
|
|
multiselect: {
|
2022-05-05 07:54:28 +00:00
|
|
|
|
id: "cKjFfl",
|
2021-04-29 08:58:03 +00:00
|
|
|
|
defaultMessage: "Multiple Select",
|
2022-06-21 09:36:55 +00:00
|
|
|
|
description: "product attribute type",
|
2021-04-29 08:58:03 +00:00
|
|
|
|
},
|
|
|
|
|
references: {
|
2022-05-05 07:54:28 +00:00
|
|
|
|
id: "5dLpx0",
|
2021-04-29 08:58:03 +00:00
|
|
|
|
defaultMessage: "References",
|
2022-06-21 09:36:55 +00:00
|
|
|
|
description: "references attribute type",
|
2021-04-29 08:58:03 +00:00
|
|
|
|
},
|
2022-07-19 14:16:43 +00:00
|
|
|
|
plainText: {
|
|
|
|
|
id: "HLr8KQ",
|
|
|
|
|
defaultMessage: "Plain Text",
|
|
|
|
|
description: "plain text attribute type",
|
|
|
|
|
},
|
|
|
|
|
richText: {
|
|
|
|
|
id: "kEAjZV",
|
|
|
|
|
defaultMessage: "Rich Text",
|
|
|
|
|
description: "rich text attribute type",
|
2021-04-29 08:58:03 +00:00
|
|
|
|
},
|
|
|
|
|
numeric: {
|
2022-05-05 07:54:28 +00:00
|
|
|
|
id: "SNiyXb",
|
2021-04-29 08:58:03 +00:00
|
|
|
|
defaultMessage: "Numeric",
|
2022-06-21 09:36:55 +00:00
|
|
|
|
description: "numeric attribute type",
|
2021-06-19 23:13:16 +00:00
|
|
|
|
},
|
|
|
|
|
boolean: {
|
2022-05-05 07:54:28 +00:00
|
|
|
|
id: "l5V0QT",
|
2021-06-19 23:13:16 +00:00
|
|
|
|
defaultMessage: "Boolean",
|
2022-06-21 09:36:55 +00:00
|
|
|
|
description: "boolean attribute type",
|
2021-07-29 12:15:14 +00:00
|
|
|
|
},
|
|
|
|
|
date: {
|
2022-05-05 07:54:28 +00:00
|
|
|
|
id: "fU+a9k",
|
2021-07-29 12:15:14 +00:00
|
|
|
|
defaultMessage: "Date",
|
2022-06-21 09:36:55 +00:00
|
|
|
|
description: "date attribute type",
|
2021-07-29 12:15:14 +00:00
|
|
|
|
},
|
|
|
|
|
dateTime: {
|
2022-05-05 07:54:28 +00:00
|
|
|
|
id: "DzPVnj",
|
2021-07-29 12:15:14 +00:00
|
|
|
|
defaultMessage: "Date Time",
|
2022-06-21 09:36:55 +00:00
|
|
|
|
description: "date time attribute type",
|
2021-09-21 13:16:21 +00:00
|
|
|
|
},
|
|
|
|
|
swatch: {
|
2022-05-05 07:54:28 +00:00
|
|
|
|
id: "gx4wCT",
|
2021-09-21 13:16:21 +00:00
|
|
|
|
defaultMessage: "Swatch",
|
2022-06-21 09:36:55 +00:00
|
|
|
|
description: "swatch attribute type",
|
|
|
|
|
},
|
2021-04-29 08:58:03 +00:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
export const unitSystemMessages = defineMessages({
|
|
|
|
|
metric: {
|
2022-05-05 07:54:28 +00:00
|
|
|
|
id: "ZayvsI",
|
2021-04-29 08:58:03 +00:00
|
|
|
|
defaultMessage: "Metric",
|
2022-06-21 09:36:55 +00:00
|
|
|
|
description: "metric unit system",
|
2021-04-29 08:58:03 +00:00
|
|
|
|
},
|
|
|
|
|
imperial: {
|
2022-05-05 07:54:28 +00:00
|
|
|
|
id: "YgE6ga",
|
2021-04-29 08:58:03 +00:00
|
|
|
|
defaultMessage: "Imperial",
|
2022-06-21 09:36:55 +00:00
|
|
|
|
description: "imperial unit system",
|
|
|
|
|
},
|
2021-04-29 08:58:03 +00:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
export const unitTypeMessages = defineMessages({
|
|
|
|
|
volume: {
|
2022-05-05 07:54:28 +00:00
|
|
|
|
id: "cy8sV7",
|
2021-04-29 08:58:03 +00:00
|
|
|
|
defaultMessage: "Volume",
|
2022-06-21 09:36:55 +00:00
|
|
|
|
description: "volume units types",
|
2021-04-29 08:58:03 +00:00
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
distance: {
|
2022-05-05 07:54:28 +00:00
|
|
|
|
id: "k/mTEl",
|
2021-04-29 08:58:03 +00:00
|
|
|
|
defaultMessage: "Distance",
|
2022-06-21 09:36:55 +00:00
|
|
|
|
description: "distance units type",
|
2021-04-29 08:58:03 +00:00
|
|
|
|
},
|
|
|
|
|
weight: {
|
2022-05-05 07:54:28 +00:00
|
|
|
|
id: "Vdy5g7",
|
2021-04-29 08:58:03 +00:00
|
|
|
|
defaultMessage: "Weight",
|
2022-06-21 09:36:55 +00:00
|
|
|
|
description: "weight units type",
|
2021-04-29 08:58:03 +00:00
|
|
|
|
},
|
|
|
|
|
area: {
|
2022-05-05 07:54:28 +00:00
|
|
|
|
id: "A9QSur",
|
2021-04-29 08:58:03 +00:00
|
|
|
|
defaultMessage: "Area",
|
2022-06-21 09:36:55 +00:00
|
|
|
|
description: "area units type",
|
|
|
|
|
},
|
2021-04-29 08:58:03 +00:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
export const unitMessages = defineMessages({
|
2022-05-05 07:54:28 +00:00
|
|
|
|
pint: { id: "B0PaVS", defaultMessage: "pint", description: "pint unit" },
|
|
|
|
|
acreInch: {
|
|
|
|
|
id: "jBu2yj",
|
|
|
|
|
defaultMessage: "acre-inch",
|
2022-06-21 09:36:55 +00:00
|
|
|
|
description: "acre-inch unit",
|
2022-05-05 07:54:28 +00:00
|
|
|
|
},
|
|
|
|
|
acreFt: {
|
|
|
|
|
id: "5XG1CO",
|
|
|
|
|
defaultMessage: "acre-ft",
|
2022-06-21 09:36:55 +00:00
|
|
|
|
description: "acre-ft unit",
|
|
|
|
|
},
|
2021-04-29 08:58:03 +00:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
export const units = {
|
|
|
|
|
cubicCentimeter: <>cm³</>,
|
|
|
|
|
cubicDecimeter: <>dm³</>,
|
|
|
|
|
cubicMeter: <>m³</>,
|
|
|
|
|
liter: "l",
|
|
|
|
|
centimeter: "cm",
|
|
|
|
|
meter: "m",
|
|
|
|
|
kilometer: "km",
|
|
|
|
|
gram: "g",
|
|
|
|
|
kilogram: "kg",
|
|
|
|
|
tonne: "t",
|
|
|
|
|
squareCentimeter: <>cm²</>,
|
|
|
|
|
squareMeter: <>m²</>,
|
|
|
|
|
squareKilometer: <>km²</>,
|
|
|
|
|
cubicFoot: <>ft³</>,
|
|
|
|
|
cubicInch: <>in³</>,
|
|
|
|
|
cubicYard: <>yd³</>,
|
|
|
|
|
qt: "qt",
|
|
|
|
|
flOz: "fl. oz",
|
|
|
|
|
pint: unitMessages.pint,
|
|
|
|
|
acreInch: unitMessages.acreInch,
|
|
|
|
|
acreFt: unitMessages.acreFt,
|
|
|
|
|
ft: "ft",
|
|
|
|
|
yd: "yd",
|
|
|
|
|
inch: "in",
|
|
|
|
|
oz: "oz",
|
|
|
|
|
lbs: "lbs",
|
|
|
|
|
squareFt: <>ft²</>,
|
|
|
|
|
squareYd: <>yd²</>,
|
2022-06-21 09:36:55 +00:00
|
|
|
|
squareInch: <>in²</>,
|
2021-04-29 08:58:03 +00:00
|
|
|
|
};
|