Title: Performant Translations
Author: Pascal Birchler
Published: <strong>2023 年 8 月 29 日</strong>
Last modified: 2025 年 12 月 5 日

---

搜索插件

![](https://ps.w.org/performant-translations/assets/banner-772x250.png?rev=3103384)

![](https://ps.w.org/performant-translations/assets/icon.svg?rev=3098168)

# Performant Translations

 作者：[Pascal Birchler](https://profiles.wordpress.org/swissspidy/)

[下载](https://downloads.wordpress.org/plugin/performant-translations.1.2.0.zip)

 * [详情](https://cn.wordpress.org/plugins/performant-translations/#description)
 * [评价](https://cn.wordpress.org/plugins/performant-translations/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/performant-translations/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/performant-translations/#developers)

 [支持](https://wordpress.org/support/plugin/performant-translations/)

## 描述

Making internationalization/localization in WordPress faster than ever before.

### Disclaimer about WordPress 6.5

**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.

### What this plugin does

This project uses a new approach to handle translation files in WordPress, making
localization blazing fast.

An [in-depth i18n performance analysis](https://make.wordpress.org/core/2023/07/24/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.

## 屏幕截图

 * [[
 * Chart showing the load time improvement achieved with this plugin.

## 安装

#### Installation from within WordPress

 1. Visit **Plugins > Add New**.
 2. Search for **Performant Translations**.
 3. Install and activate the Performant Translations plugin.

#### Manual installation

 1. Upload the entire `performant-translations` folder to the `/wp-content/plugins/`
    directory.
 2. Visit **Plugins**.
 3. Activate the Performant Translations plugin.

## 常见问题

### What makes this plugin so fast?

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](https://www.php.net/manual/en/book.opcache.php),
which provides an additional speed boost.

### Can I use this plugin on my production site?

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.

### Has this plugin been tested with other multilingual plugins?

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.

### Do I need to do anything special to enable this plugin?

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.

### Can I safely remove this plugin after installation?

Yes. Once you deactivate and uninstall the plugin, all `.php` files generated by
it will be removed from the server.

### How can I contribute to the plugin?

Contributions are always welcome! Learn more about how to get involved in the [Core Performance Team Handbook](https://make.wordpress.org/performance/handbook/get-involved/).

### Where can I submit my plugin feedback?

If you have suggestions or requests for new features, you can submit them as an 
issue on the [GitHub repository](https://github.com/swissspidy/performant-translations).

If you need help with troubleshooting or have a question about the plugin, please
[create a new topic on our support forum](https://wordpress.org/support/plugin/performant-translations/#new-topic-0).

### Where can I report security issues?

To report a security issue, please visit the [WordPress HackerOne](https://hackerone.com/wordpress)
program.

## 评价

![](https://secure.gravatar.com/avatar/57208c8559a6aad1317c8851a1d51fb7c6dc5100dc9a460ace4a573c9a6fbc1b?
s=60&d=retro&r=g)

### 󠀁[Great Plugin!](https://wordpress.org/support/topic/great-plugin-41108/)󠁿

 [Ahmad Zia Zahedi](https://profiles.wordpress.org/millogmbh/) 2025 年 12 月 6 日

Very helpful! Easy to access and accurate.

![](https://secure.gravatar.com/avatar/f6f328b6830ad80ed753772f7e6699338e7b5c745e935bb29be0a7dd36412463?
s=60&d=retro&r=g)

### 󠀁[Speedy help!](https://wordpress.org/support/topic/speedy-help-2/)󠁿

 [Abdullah Aldeghaim](https://profiles.wordpress.org/medstore17/) 2025 年 9 月 26
日

Works great. Assisted with the issues, and it’s easy to use.

![](https://secure.gravatar.com/avatar/f8fad84d6be990df04f3e6a57a6bb01e0ca7ec4541fe4b3af7c031159a9d5600?
s=60&d=retro&r=g)

### 󠀁[This plugin saved me hundreds of dollars](https://wordpress.org/support/topic/this-plugin-saved-me-hundreds-of-dollars/)󠁿

 [magneetjeswinkel](https://profiles.wordpress.org/magneetjeswinkel/) 2024 年 4 
月 11 日

What this plugin does is amazing! There were some issues that made my website slow.
The website achieved a mobile page speed of 52. Blocked display for more than 10
seconds. I don’t have the technical knowledge to fix this in the code. This would
have cost me around $600. I found this plugin and all errors were removed from the
website with one click. I am incredibly happy with the result. And that with a free
plugin! I knew it should be possible. Because I am so happy, I take the paid subscription!
Thank you very much!

![](https://secure.gravatar.com/avatar/fc767c2ddea53405c2948351b99ad961593040b359b931ee9b92856cdae9ec48?
s=60&d=retro&r=g)

### 󠀁[You feel the difference](https://wordpress.org/support/topic/you-feel-the-difference/)󠁿

 [Jeroen Rotty](https://profiles.wordpress.org/jeroenrotty/) 2024 年 1 月 21 日

Browsing the dashboard feels instant snappier, even if your hosting is already fast
and performant – it still makes a difference!

![](https://secure.gravatar.com/avatar/2ac90f17873e6f228e8daf092df27a3f3c90951bd5aaef58ffc238f781e2d49a?
s=60&d=retro&r=g)

### 󠀁[Cool](https://wordpress.org/support/topic/cool-1283/)󠁿

 [Benedikt Ledl](https://profiles.wordpress.org/benniledl/) 2024 年 1 月 16 日

I’ve got a multi language site (with WPML) that has a huge performance problem. 
I was not able to figure out what is actually causing the performance problem, the
main problem probably has nothing to do with i18n, this plugin still helps cause
it significantely speeds up the translations, leaving the only bottleneck to be 
the unknown problem. Many thanks for your efforts!

![](https://secure.gravatar.com/avatar/e085cf59a8708473493e41577d525ec34c0f9c2529f5e013e38343cc25c2e6c7?
s=60&d=retro&r=g)

### 󠀁[Faster wp-admin](https://wordpress.org/support/topic/faster-wp-admin/)󠁿

 [juregolob](https://profiles.wordpress.org/juregolob/) 2023 年 11 月 23 日

I tried this plugin on a couple of websites and I believe it makes my admin user
experience a bit faster. Cached front end is fast as ever. It works great with Polylang,
WooCommerce and Loco Translate. I like where this is going and I hope it gets implemented
into the WP Core soon. Update:Duplicator (Pro) throws a runtime error when trying
to make a backup while this plugin is activated. Temporarily disabling it solves
the issue.

 [ 阅读所有16条评价 ](https://wordpress.org/support/plugin/performant-translations/reviews/)

## 贡献者及开发者

「Performant Translations」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Pascal Birchler ](https://profiles.wordpress.org/swissspidy/)
 *   [ Dion Hulse ](https://profiles.wordpress.org/dd32/)
 *   [ WordPress.org ](https://profiles.wordpress.org/wordpressdotorg/)
 *   [ WordPress Performance Team ](https://profiles.wordpress.org/performanceteam/)

「Performant Translations」插件已被翻译至 27 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/performant-translations/contributors)
为本插件所做的贡献。

[帮助将「Performant Translations」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/performant-translations)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/performant-translations/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/performant-translations/)，或通过
[RSS](https://plugins.trac.wordpress.org/log/performant-translations/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/performant-translations/)。

## 更新日志

For the plugin’s full changelog, please see [the Releases page on GitHub](https://github.com/swissspidy/performant-translations/releases).

#### 1.2.0

 * This plugin now requires WordPress 6.5

#### 1.1.2

 * Fixed a minor regression when assembling file paths to look up.

#### 1.1.1

 * Fixed: Addressed a slight performance regression in 1.1.0.
 * Fixed: Addressed an issue with incorrect plural forms for certain locales.

#### 1.1.0

 * Enhancement: Support for this functionality existing in WordPress 6.5.
 * Enhancement: Added hardening for file paths not being strings because of a faulty
   plugin filter.
 * Enhancement: Invalidate OPcache after writing PHP files.
 * Enhancement: Improve compatibility with pluralized strings referenced as singulars.

#### 1.0.9

 * Enhancement: Improved compatibility with WPML string translation add-on.

#### 1.0.8

 * Fixed: Added workaround for potential file permission issues.

#### 1.0.7

 * Fixed: Prevent issue where not all core translations were updated.
 * Enhancement: Change the order translations are loaded in to improve backward 
   compatibility.

#### 1.0.6

 * Enhancement: Remove JSON file support.
 * Fixed: Add hardening when using translation file paths with symlinks.

#### 1.0.5

 * Enhancement: Improved compatibility with Loco Translate to avoid duplicate files.

#### 1.0.4

 * Enhancement: Several minor performance improvements.
 * Enhancement: Use different file extension (`.mo.php` instead of just `.php`) 
   to prevent conflicts.
 * Enhancement: “Import” existing translation file if one is already loaded for 
   a text domain.
 * Enhancement: Use WP Filesystem API if available.

#### 1.0.3

 * Enhancement: Improved compatibility with Query Monitor’s developer tools panel.
 * Enhancement: Added new `performant_translations_load_translation_file` filter.
 * Enhancement: Enforce network-only activation on Multisite.

#### 1.0.2

 * Fixed: Add hardening for invalid values being passed to translation functions.

#### 1.0.1

 * Enhancement: Regenerate translation files when Loco Translate updates MO files.
 * Fixed: Add hardening for invalid context being passed.
 * Fixed: Fix handling of locales without plurals, such as Persian.

#### 1.0.0

 * Initial release.

## 社区插件

该插件由社区开发和支持。 [为该插件贡献](https://github.com/swissspidy/performant-translations)

## 额外信息

 *  版本 **1.2.0**
 *  最后更新：**4 月前**
 *  活跃安装数量 **40,000+**
 *  WordPress 版本 ** 6.5 或更高版本 **
 *  已测试的最高版本为 **6.9.4**
 *  PHP 版本 ** 7.0 或更高版本 **
 *  语言
 * [Bengali (Bangladesh)](https://bn.wordpress.org/plugins/performant-translations/)、
   [Catalan](https://ca.wordpress.org/plugins/performant-translations/) 、 [Chinese (Taiwan)](https://tw.wordpress.org/plugins/performant-translations/)、
   [Danish](https://da.wordpress.org/plugins/performant-translations/) 、 [Dutch](https://nl.wordpress.org/plugins/performant-translations/)、
   [Dutch (Belgium)](https://nl-be.wordpress.org/plugins/performant-translations/)、
   [English (Australia)](https://en-au.wordpress.org/plugins/performant-translations/)、
   [English (UK)](https://en-gb.wordpress.org/plugins/performant-translations/) 、
   [English (US)](https://wordpress.org/plugins/performant-translations/) 、 [French (France)](https://fr.wordpress.org/plugins/performant-translations/)、
   [German](https://de.wordpress.org/plugins/performant-translations/) 、 [German (Switzerland)](https://de-ch.wordpress.org/plugins/performant-translations/)、
   [Italian](https://it.wordpress.org/plugins/performant-translations/) 、 [Japanese](https://ja.wordpress.org/plugins/performant-translations/)、
   [Korean](https://ko.wordpress.org/plugins/performant-translations/) 、 [Norwegian (Bokmål)](https://nb.wordpress.org/plugins/performant-translations/)、
   [Persian](https://fa.wordpress.org/plugins/performant-translations/) 、 [Polish](https://pl.wordpress.org/plugins/performant-translations/)、
   [Portuguese (Brazil)](https://br.wordpress.org/plugins/performant-translations/)、
   [Portuguese (Portugal)](https://pt.wordpress.org/plugins/performant-translations/)、
   [Russian](https://ru.wordpress.org/plugins/performant-translations/) 、 [Spanish (Chile)](https://cl.wordpress.org/plugins/performant-translations/)、
   [Spanish (Spain)](https://es.wordpress.org/plugins/performant-translations/) 、
   [Swedish](https://sv.wordpress.org/plugins/performant-translations/) 、 [Turkish](https://tr.wordpress.org/plugins/performant-translations/)、
   [Uighur](https://ug.wordpress.org/plugins/performant-translations/) 、 [Ukrainian](https://uk.wordpress.org/plugins/performant-translations/)
   和 [Vietnamese](https://vi.wordpress.org/plugins/performant-translations/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/performant-translations)
 * 标签
 * [i18n](https://cn.wordpress.org/plugins/tags/i18n/)[internationalization](https://cn.wordpress.org/plugins/tags/internationalization/)
   [localization](https://cn.wordpress.org/plugins/tags/localization/)[performance](https://cn.wordpress.org/plugins/tags/performance/)
   [translation](https://cn.wordpress.org/plugins/tags/translation/)
 *  [高级视图](https://cn.wordpress.org/plugins/performant-translations/advanced/)

## 评级

 4.9 星（最高 5 星）。

 *  [  15 条 5 星评价     ](https://wordpress.org/support/plugin/performant-translations/reviews/?filter=5)
 *  [  1 条 4 星评价     ](https://wordpress.org/support/plugin/performant-translations/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/performant-translations/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/performant-translations/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/performant-translations/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/performant-translations/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/performant-translations/reviews/)

## 贡献者

 *   [ Pascal Birchler ](https://profiles.wordpress.org/swissspidy/)
 *   [ Dion Hulse ](https://profiles.wordpress.org/dd32/)
 *   [ WordPress.org ](https://profiles.wordpress.org/wordpressdotorg/)
 *   [ WordPress Performance Team ](https://profiles.wordpress.org/performanceteam/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/performant-translations/)