Skip to content

Internationalization (i18n)

The internationalization (i18n) service is used to load translations for your plugin. Translations must be stored in the languages directory of your plugin.

The service uses the plugin's slug that is set through the PluginFactory class.

TIP

This service does not require any configuration. It is automatically registered with the container.

How to make a plugin translatable

To make a plugin translatable please read the WordPress documentation.