saleor-dashboard/src/discounts/translations.ts

9 lines
309 B
TypeScript
Raw Normal View History

2019-06-19 14:40:52 +00:00
import i18n from "../i18n";
2019-08-09 11:14:35 +00:00
import { VoucherTypeEnum } from "../types/globalTypes";
2019-06-19 14:40:52 +00:00
export const translateVoucherTypes = () => ({
2019-08-09 11:14:35 +00:00
[VoucherTypeEnum.SHIPPING]: i18n.t("Shipment"),
[VoucherTypeEnum.ENTIRE_ORDER]: i18n.t("Entire order"),
[VoucherTypeEnum.SPECIFIC_PRODUCT]: i18n.t("Specific Products")
2019-06-19 14:40:52 +00:00
});