Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "wordpress-packages/utils/lib/factory/i18n"

Index

Functions

createLocalizationFactory

  • createLocalizationFactory(slug: string): { __: __; _i: _i; _n: _n; _nx: _nx; _x: _x }
  • 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 { __: __; _i: _i; _n: _n; _nx: _nx; _x: _x }

sprintf

  • sprintf(message: string, ...args: any[]): string
  • Parameters

    • message: string
    • Rest ...args: any[]

    Returns string

Generated using TypeDoc