143 lines
3.3 KiB
TypeScript
143 lines
3.3 KiB
TypeScript
![]() |
import React from "react";
|
|||
|
import { defineMessages } from "react-intl";
|
|||
|
|
|||
|
export const messages = defineMessages({
|
|||
|
attributeLabel: {
|
|||
|
defaultMessage: "Default Label",
|
|||
|
description: "attribute's label"
|
|||
|
},
|
|||
|
attributeSlug: {
|
|||
|
defaultMessage: "Attribute Code",
|
|||
|
description: "attribute's slug short code label"
|
|||
|
},
|
|||
|
attributeSlugHelperText: {
|
|||
|
defaultMessage: "This is used internally. Make sure you don’t use spaces",
|
|||
|
description: "attribute slug input field helper text"
|
|||
|
},
|
|||
|
entityType: {
|
|||
|
defaultMessage: "Entity",
|
|||
|
description: "attribute's editor component entity"
|
|||
|
},
|
|||
|
inputType: {
|
|||
|
defaultMessage: "Catalog Input type for Store Owner",
|
|||
|
description: "attribute's editor component"
|
|||
|
},
|
|||
|
valueRequired: {
|
|||
|
defaultMessage: "Value Required",
|
|||
|
description: "check to require attribute to have value"
|
|||
|
},
|
|||
|
selectUnit: {
|
|||
|
defaultMessage: "Select unit",
|
|||
|
description: "check to require numeric attribute unit"
|
|||
|
},
|
|||
|
unitSystem: {
|
|||
|
defaultMessage: "System",
|
|||
|
description: "numeric attribute unit system"
|
|||
|
},
|
|||
|
|
|||
|
unitOf: {
|
|||
|
defaultMessage: "Units of",
|
|||
|
description: "numeric attribute units of"
|
|||
|
},
|
|||
|
unit: {
|
|||
|
defaultMessage: "Unit",
|
|||
|
description: "numeric attribute unit"
|
|||
|
}
|
|||
|
});
|
|||
|
|
|||
|
export const inputTypeMessages = defineMessages({
|
|||
|
dropdown: {
|
|||
|
defaultMessage: "Dropdown",
|
|||
|
description: "product attribute type"
|
|||
|
},
|
|||
|
file: {
|
|||
|
defaultMessage: "File",
|
|||
|
description: "file attribute type"
|
|||
|
},
|
|||
|
multiselect: {
|
|||
|
defaultMessage: "Multiple Select",
|
|||
|
description: "product attribute type"
|
|||
|
},
|
|||
|
references: {
|
|||
|
defaultMessage: "References",
|
|||
|
description: "references attribute type"
|
|||
|
},
|
|||
|
text: {
|
|||
|
defaultMessage: "Text",
|
|||
|
description: "text attribute type"
|
|||
|
},
|
|||
|
numeric: {
|
|||
|
defaultMessage: "Numeric",
|
|||
|
description: "numeric attribute type"
|
|||
|
}
|
|||
|
});
|
|||
|
|
|||
|
export const unitSystemMessages = defineMessages({
|
|||
|
metric: {
|
|||
|
defaultMessage: "Metric",
|
|||
|
description: "metric unit system"
|
|||
|
},
|
|||
|
imperial: {
|
|||
|
defaultMessage: "Imperial",
|
|||
|
description: "imperial unit system"
|
|||
|
}
|
|||
|
});
|
|||
|
|
|||
|
export const unitTypeMessages = defineMessages({
|
|||
|
volume: {
|
|||
|
defaultMessage: "Volume",
|
|||
|
description: "volume units types"
|
|||
|
},
|
|||
|
|
|||
|
distance: {
|
|||
|
defaultMessage: "Distance",
|
|||
|
description: "distance units type"
|
|||
|
},
|
|||
|
weight: {
|
|||
|
defaultMessage: "Weight",
|
|||
|
description: "weight units type"
|
|||
|
},
|
|||
|
area: {
|
|||
|
defaultMessage: "Area",
|
|||
|
description: "area units type"
|
|||
|
}
|
|||
|
});
|
|||
|
|
|||
|
export const unitMessages = defineMessages({
|
|||
|
pint: { defaultMessage: "pint", description: "pint unit" },
|
|||
|
acreInch: { defaultMessage: "acre-inch", description: "acre-inch unit" },
|
|||
|
acreFt: { defaultMessage: "acre-ft", description: "acre-ft unit" }
|
|||
|
});
|
|||
|
|
|||
|
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²</>,
|
|||
|
squareInch: <>in²</>
|
|||
|
};
|