Translate Flexible Invoices with Poedit#
You can use Poedit to create or edit translations of Flexible Invoices labels and messages.
You will need:
- Poedit installed on your computer.
- The files from the plugin version installed on your website.
- Access to your website's files through SFTP, FTP or your hosting file manager.
You can also follow our step-by-step guide to translating a WordPress plugin.
Create a Translation#
The plugin includes a POT translation template in its lang directory. Choose the file for your edition:
- Flexible Invoices Free:
wp-content/plugins/flexible-invoices/lang/flexible-invoices.pot - Flexible Invoices PRO:
wp-content/plugins/flexible-invoices-woocommerce/lang/flexible-invoices-woocommerce.pot
- Open Poedit and create a new translation from the appropriate POT file. If you already have a PO translation file, open it to edit the existing translation.
- Select the target language and regional variant, such as Spanish (Spain).
- Select each source string and enter its translation in the translation field.
- Preserve placeholders such as
%sand%1$s, along with any required HTML tags. - Validate the translation and resolve any reported errors.

Save and Compile the Translation#
Save the translation using the plugin's text domain followed by the WordPress locale. For Spanish (Spain), use:
- Free:
flexible-invoices-es_ES.po - PRO:
flexible-invoices-woocommerce-es_ES.po
Generate the compiled MO file with the same base name. Poedit can compile it automatically when saving; if necessary, use File → Compile to MO.
For example, the PRO translation should produce:
flexible-invoices-woocommerce-es_ES.po— the editable translation.flexible-invoices-woocommerce-es_ES.mo— the compiled translation used by WordPress.
Use the exact locale required by your site. For example, es_ES and es_MX identify different regional variants.
Upload the Translation#
Upload the MO file to:
wp-content/languages/plugins/
You can keep the PO file alongside it for future editing. The PO file alone does not provide the compiled translation.
Keep a backup of your custom translation files. Files saved directly inside the plugin directory can be replaced during a plugin update.
Check the Result#
Activate the relevant language in WordPress and check the translated screens. The administration interface can also use the language selected in the logged-in user's profile.
Generate a test PDF and check the invoice email separately. Document language also depends on the language information stored with the document and, when applicable, the WPML integration. Changing the dashboard language alone does not guarantee that every invoice will use that language.
Translation files change plugin labels and messages. They do not automatically translate product names, customer details, saved notes or custom text entered in invoice templates.
Gutenberg Editor Translations#
The Gutenberg invoice editor also contains JavaScript strings. PO and MO files alone do not cover those strings; WordPress uses JSON translation files for JavaScript.
If the PDF labels are translated but parts of the block editor remain in English, check that the corresponding JavaScript translation files have also been generated and made available to the plugin's editor scripts.
Update Your Translation#
After updating Flexible Invoices, update your existing PO translation from the latest plugin POT file. Translate any new or changed strings, validate the file, compile it again and upload the updated translation.
