babel-plugin-react-intl

  • Version 8.2.25
  • Published
  • 25.8 kB
  • 9 dependencies
  • BSD-3-Clause license

Install

npm i babel-plugin-react-intl
yarn add babel-plugin-react-intl
pnpm add babel-plugin-react-intl

Overview

Extracts string messages for translation from modules that use React Intl.

Index

Variables

variable _default

const _default: any;

    Interfaces

    interface OptionsSchema

    interface OptionsSchema {}
    • This file was automatically generated by json-schema-to-typescript. DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, and run json-schema-to-typescript to regenerate this file.

    property additionalComponentNames

    additionalComponentNames?: string[];

      property ast

      ast?: boolean;

        property extractFromFormatMessageCall

        extractFromFormatMessageCall?: boolean;

          property extractSourceLocation

          extractSourceLocation?: boolean;

            property idInterpolationPattern

            idInterpolationPattern?: string;

              property moduleSourceName

              moduleSourceName?: string;

                property overrideIdFn

                overrideIdFn?: (
                id?: string,
                defaultMessage?: string,
                description?: string,
                filePath?: string
                ) => string;

                  property pragma

                  pragma?: string;

                    property removeDefaultMessage

                    removeDefaultMessage?: boolean;

                      Type Aliases

                      type ExtractedMessageDescriptor

                      type ExtractedMessageDescriptor = MessageDescriptor &
                      Partial<SourceLocation> & {
                      file?: string;
                      };

                        type ExtractionResult

                        type ExtractionResult<M = Record<string, string>> = {
                        messages: ExtractedMessageDescriptor[];
                        meta: M;
                        };

                          Namespaces

                          namespace @babel/helper-plugin-utils

                          module '@babel/helper-plugin-utils' {}

                            Package Files (3)

                            Dependencies (9)

                            Dev Dependencies (0)

                            No dev dependencies.

                            Peer Dependencies (0)

                            No peer dependencies.

                            Badge

                            To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                            You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/babel-plugin-react-intl.

                            • Markdown
                              [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/babel-plugin-react-intl)
                            • HTML
                              <a href="https://www.jsdocs.io/package/babel-plugin-react-intl"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>