Translate your WordPress theme with the Loco Translate plugin
Install Loco Translate, open Loco Translate > Themes, pick your theme and click New language. Choose the Custom location, wp-content/languages/loco/themes/, so updates cannot delete your work, then translate strings and click Save to write the .po and .mo files. Finally set the Site Language under Settings > General. Loco Translate changes the theme's built-in text only; translating your pages needs a multilingual plugin such as Polylang.
Updated · By THTheme Editorial Team
Key facts
- Custom translations saved in wp-content/languages/loco/themes/ are safe from automatic translation updates
- Translation files saved inside the theme's own folder are deleted when the theme updates
- Loco Translate added support for WordPress 6.5's faster PHP translation files in version 2.6.7
- Loco Translate can fetch machine suggestions from services such as DeepL and OpenAI
| Location | Folder | Safe from updates |
|---|---|---|
| Custom | wp-content/languages/loco/themes/ | Yes, recommended |
| System | wp-content/languages/themes/ | No, WordPress language pack updates can overwrite it |
| Author | Inside the theme folder | No, theme updates delete it |
Before you start
- The theme must be translation-ready. Most themes ship a .pot template file in a languages folder. If there is none, Loco Translate warns you, though it can still pull strings from the theme's code.
- The folder must be writable. Create wp-content/languages/loco/themes/ if it does not exist, or ask your host to make it writable.
- Know what you are translating. Theme strings are things like Read more, Leave a comment and Search results. Your own page and post text is content, which Loco Translate does not touch.
Step by step: translate your theme
- Install and activate Loco Translate from Plugins > Add New.
- Go to Loco Translate > Themes and click your theme.
- If WordPress already downloaded community translations, you will see them marked System. You can leave them; your custom file overrides them string by string.
- Click New language and choose the language.
- Select the Custom location, then click Start translating.
- Use the filter box to find a string, type the translation in the lower pane, and repeat.
- Click Save. Loco Translate writes a .po file (the editable source) and a .mo file (what WordPress loads).
- Go to Settings > General, set Site Language, save, and check the front end.
Block themes, plugins and WooCommerce strings
Block themes keep some text in patterns and theme.json. Loco Translate 2.6.7 and later can extract strings from theme.json, block.json and pattern files, so these show up in the editor too. The same steps work for plugins under Loco Translate > Plugins. If your shop says Add to cart where you want Buy now, translate the WooCommerce string in English to English. That is a common way to change store wording without code.
When you need a multilingual plugin instead
Loco Translate gives you one language per site for theme and plugin text. If you want visitors to switch between languages, with translated pages, menus and products, use a multilingual plugin:
- Polylang creates a separate translated version of each post and page.
- TranslatePress lets you translate pages from the front end.
You can still use Loco Translate alongside them to fix individual theme or plugin strings. For a store, make sure your WooCommerce emails are translated too.
FAQ
Is Loco Translate free?
Yes. Loco Translate is free on WordPress.org.
Where does Loco Translate save translations?
Wherever you choose. Pick the Custom location, wp-content/languages/loco/themes/ for themes, so updates cannot overwrite your files.
Why are my Loco Translate changes not showing?
Check that Site Language matches the language you translated, that you clicked Save, and clear any page cache. Some strings come from plugins rather than the theme.
Can Loco Translate translate my pages and posts?
No. It translates the text built into themes and plugins. For page and post content in several languages, use a multilingual plugin such as Polylang or TranslatePress.