For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Localization

There are two types of localization (i18n) coming with this boilerplate. In this part we explain the PHP localization. Just have a look at src/languages/your-plugin.pot - that's the main PHP i18n file.

To localize your plugin use the i18n functions coming with WordPress core: __, _n and so on (difference). The .pot file is automatically generated while using yarn docker:start. To generate the file manually you can use the command yarn i18n:generate:backend in your plugin folder.

When using the above functions always use your own text domain constant WPRJSS_TD as context parameter.

Localization

Last updated