Wp i18n (WP-CLI)

Uit De Vliegende Brigade
Versie door Jeroen Strompf (overleg | bijdragen) op 5 okt 2022 om 10:47
(wijz) ← Oudere versie | Huidige versie (wijz) | Nieuwere versie → (wijz)
Naar navigatie springen Naar zoeken springen
$ wp help i18n

NAME

  wp i18n

DESCRIPTION

  Provides internationalization tools for WordPress projects.

SYNOPSIS

  wp i18n <command>

SUBCOMMANDS

  make-json      Extract JavaScript strings from PO files and add them to individual JSON files.
  make-pot       Create a POT file for a WordPress project.

EXAMPLES

    # Create a POT file for the WordPress plugin/theme in the current directory
    $ wp i18n make-pot . languages/my-plugin.pot