Making internationalization/localization in WordPress faster than ever before.
Making internationalization/localization in WordPress faster than ever before.
Attention: most functionality of this plugin has been merged into WordPress 6.5! You might not need it anymore.
However, this plugin is still relevant for cases where language packs are not downloaded from WordPress.org but somewhere else, for example if you are developing your own plugins or using commercial plugins.
The Performant Translations plugin converts the translation files of those plugins to the new file format introduced in WordPress 6.5, to really optimize them for speed.
This project uses a new approach to handle translation files in WordPress, making localization blazing fast.
An in-depth i18n performance analysis showed that localized WordPress sites load significantly slower than a site without translations.
With this plugin’s new approach to localization, this overhead is massively reduced, making your site fast again. It does so by converting .mo
translation files to .php
files.
If your site is using a language other than English (US), you should see immediate speed improvements simply by activating this plugin.
performant-translations
folder to the /wp-content/plugins/
directory.By converting .mo
files to .php
files, the translations can be parsed much faster.
Plus, .php
files can be stored in the so-called OPcache, which provides an additional speed boost.
While the plugin is mostly considered to be a beta testing plugin, it has been tested and established to a degree where it should be okay to use in production.
Still, as with every plugin, you are doing so at your own risk.
Yes. This plugin has been tested with common multilingual plugins, such as WPML, Weglot, TranslatePress, MultilingualPress, and Polylang.
If you still encounter issues, please let us know.
No. Once the plugin is activated, it just works, and you should see speed improvements right away. If you run into issues, please open a new support topic.
Yes. Once you deactivate and uninstall the plugin, all .php
files generated by it will be removed from the server.
Contributions are always welcome! Learn more about how to get involved in the Core Performance Team Handbook.
If you have suggestions or requests for new features, you can submit them as an issue on the GitHub repository.
If you need help with troubleshooting or have a question about the plugin, please create a new topic on our support forum.
To report a security issue, please visit the WordPress HackerOne program.
For the plugin’s full changelog, please see the Releases page on GitHub.
.mo.php
instead of just .php
) to prevent conflicts.performant_translations_load_translation_file
filter.