If you set your site language in Settings › General, WordPress downloads the official WooCommerce translation for you, if one exists for your language. Follow the steps below when you want to change some of the translated texts.
WooCommerce is a separate plugin, so you translate its texts separately from the theme. Don’t save your translation files in the WooCommerce plugin folder, because WooCommerce updates replace that folder.
With the Loco Translate plugin
- Install and activate Loco Translate from Plugins › Add Plugin.
- Go to Loco Translate › Plugins and click WooCommerce.
- Click New language and choose your language.
- Select the Custom location, so updates don’t overwrite your translation, and click Start translating.
- Find the texts you want to change, enter your translations, and click Save.
With Poedit
- Download the file
wp-content/plugins/woocommerce/i18n/languages/woocommerce.potfrom your site. - In Poedit, create a new translation from that file and translate the texts you want to change.
- Save it as
woocommerce-LOCALE.po, for examplewoocommerce-de_DE.pofor German. Poedit also creates the matching.mofile. - Upload both files to
wp-content/languages/woocommerce/. Create that folder if it doesn’t exist.
WooCommerce loads the translations in this folder first, and updates don’t overwrite them.
To translate the theme itself, see How to translate any WordPress theme into another language.