Skip to content

Commit

Permalink
fix(core): Fix i18n custom fields in Promotion & PaymentMethod
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Nov 21, 2023
1 parent fc70230 commit 3d6edb5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/core/src/entity/register-custom-entity-fields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import {
CustomOrderFields,
CustomOrderLineFields,
CustomPaymentMethodFields,
CustomPaymentMethodFieldsTranslation,
CustomProductFields,
CustomProductFieldsTranslation,
CustomProductOptionFields,
Expand All @@ -44,6 +45,7 @@ import {
CustomProductVariantFields,
CustomProductVariantFieldsTranslation,
CustomPromotionFields,
CustomPromotionFieldsTranslation,
CustomRegionFields,
CustomRegionFieldsTranslation,
CustomSellerFields,
Expand Down Expand Up @@ -274,6 +276,7 @@ export function registerCustomEntityFields(config: VendureConfig) {
registerCustomFieldsForEntity(config, 'Order', CustomOrderFields);
registerCustomFieldsForEntity(config, 'OrderLine', CustomOrderLineFields);
registerCustomFieldsForEntity(config, 'PaymentMethod', CustomPaymentMethodFields);
registerCustomFieldsForEntity(config, 'PaymentMethod', CustomPaymentMethodFieldsTranslation, true);
registerCustomFieldsForEntity(config, 'Product', CustomProductFields);
registerCustomFieldsForEntity(config, 'Product', CustomProductFieldsTranslation, true);
registerCustomFieldsForEntity(config, 'ProductOption', CustomProductOptionFields);
Expand All @@ -288,6 +291,7 @@ export function registerCustomEntityFields(config: VendureConfig) {
registerCustomFieldsForEntity(config, 'ProductVariant', CustomProductVariantFields);
registerCustomFieldsForEntity(config, 'ProductVariant', CustomProductVariantFieldsTranslation, true);
registerCustomFieldsForEntity(config, 'Promotion', CustomPromotionFields);
registerCustomFieldsForEntity(config, 'Promotion', CustomPromotionFieldsTranslation, true);
registerCustomFieldsForEntity(config, 'TaxCategory', CustomTaxCategoryFields);
registerCustomFieldsForEntity(config, 'TaxRate', CustomTaxRateFields);
registerCustomFieldsForEntity(config, 'User', CustomUserFields);
Expand Down

0 comments on commit 3d6edb5

Please sign in to comment.