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 corearrow-up-right: __, _n and so on (differencearrow-up-right). 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.

circle-info

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

Localizationchevron-right

Last updated

Was this helpful?