devowl-wp
    Preparing search index...
    • Create multiple functions for a specific plugin so they can be localized.

      Parameters

      • slug: string

        The slug which you have registered your i18n assets

      Returns {
          __: (single: string, ...args: any[]) => string;
          _i: (
              translation: string,
              components?: {
                  [placeholder: string]: ReactElement<
                      any,
                      string
                      | JSXElementConstructor<any>,
                  >;
              },
          ) => any;
          _n: (
              single: string,
              plural: string,
              count: number,
              ...args: any[],
          ) => string;
          _nx: (
              single: string,
              plural: string,
              context: string,
              count: number,
              ...args: any[],
          ) => string;
          _x: (single: string, context: string, ...args: any[]) => string;
      }

      • __: (single: string, ...args: any[]) => string
      • _i: (
            translation: string,
            components?: {
                [placeholder: string]: ReactElement<
                    any,
                    string
                    | JSXElementConstructor<any>,
                >;
            },
        ) => any
      • _n: (single: string, plural: string, count: number, ...args: any[]) => string
      • _nx: (
            single: string,
            plural: string,
            context: string,
            count: number,
            ...args: any[],
        ) => string
      • _x: (single: string, context: string, ...args: any[]) => string