THTheme

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

Where Loco Translate can save your translation
LocationFolderSafe from updates
Customwp-content/languages/loco/themes/Yes, recommended
Systemwp-content/languages/themes/No, WordPress language pack updates can overwrite it
AuthorInside the theme folderNo, theme updates delete it

Before you start

Step by step: translate your theme

  1. Install and activate Loco Translate from Plugins > Add New.
  2. Go to Loco Translate > Themes and click your theme.
  3. If WordPress already downloaded community translations, you will see them marked System. You can leave them; your custom file overrides them string by string.
  4. Click New language and choose the language.
  5. Select the Custom location, then click Start translating.
  6. Use the filter box to find a string, type the translation in the lower pane, and repeat.
  7. Click Save. Loco Translate writes a .po file (the editable source) and a .mo file (what WordPress loads).
  8. 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:

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.

Sources