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.
Last updated
Was this helpful?