saleor-dashboard/src/attributes/components/AttributeDetails/messages.tsx

143 lines
3.3 KiB
TypeScript
Raw Normal View History

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 dont 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&sup3;</>,
cubicDecimeter: <>dm&sup3;</>,
cubicMeter: <>m&sup3;</>,
liter: "l",
centimeter: "cm",
meter: "m",
kilometer: "km",
gram: "g",
kilogram: "kg",
tonne: "t",
squareCentimeter: <>cm&sup2;</>,
squareMeter: <>m&sup2;</>,
squareKilometer: <>km&sup2;</>,
cubicFoot: <>ft&sup3;</>,
cubicInch: <>in&sup3;</>,
cubicYard: <>yd&sup3;</>,
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&sup2;</>,
squareYd: <>yd&sup2;</>,
squareInch: <>in&sup2;</>
};