How to use the @commercetools-frontend/i18n.sharedMessages.save function in @commercetools-frontend/i18n

To help you get started, we’ve selected a few @commercetools-frontend/i18n examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github commercetools / merchant-center-application-kit / packages / application-components / src / components / dialogs / form-dialog / form-dialog.tsx View on Github external
title: string;
  size?: 'm' | 'l' | 'scale';
  zIndex?: number;
  children: React.ReactNode;
  labelSecondary: Label;
  labelPrimary: Label;
  isPrimaryButtonDisabled?: boolean;
  onSecondaryButtonClick: (event: React.SyntheticEvent) => void;
  onPrimaryButtonClick: (event: React.SyntheticEvent) => void;
  dataAttributesSecondaryButton?: { [key: string]: string };
  dataAttributesPrimaryButton?: { [key: string]: string };
  getParentSelector?: () => HTMLElement;
};
const defaultProps: Pick = {
  labelSecondary: sharedMessages.cancel,
  labelPrimary: sharedMessages.save,
};

const FormDialog = (props: Props) => (
  
    
    {props.children}

@commercetools-frontend/i18n

MC i18n messages

MIT
Latest version published 13 days ago

Package Health Score

87 / 100
Full package analysis