Documentation

Translate Flexible Invoices with Loco Translate plugin

Translate Flexible Invoices with Loco Translate#

Loco Translate lets you edit plugin translations directly in the WordPress dashboard. You can use its free translation editor to translate Flexible Invoices labels and messages.

Install Loco Translate#

  1. Go to Plugins → Add New Plugin.
  2. Search for Loco Translate.
  3. Click Install Now, then Activate.

After activation, the Loco Translate menu appears in the WordPress dashboard.

Installing Loco Translate from the WordPress plugin directory

Select Flexible Invoices#

Go to Loco Translate → Plugins and select your installed Flexible Invoices edition.

The plugin editions use different translation domains:

  • Free: flexible-invoices
  • PRO: flexible-invoices-woocommerce

Click New language to create a translation. If you want to customize an existing translation, use its Copy action to create a separate custom version.

Selecting Flexible Invoices for translation in Loco Translate

Choose the Language and File Location#

  1. Select the target language and regional variant, such as Spanish (Spain).
  2. Select the Custom file location under wp-content/languages/loco/.
  3. Click Start translating.

The Custom location protects your files from automatic plugin and WordPress translation updates. Keep Loco Translate active so it can load translations from this location.

Translate and Save#

  1. Select a source string in the editor.
  2. Enter its translation in the translation field.
  3. Preserve placeholders such as %s and %1$s, along with any required HTML tags.
  4. Click Save.

Loco Translate saves the editable PO file and compiles the translation files used by WordPress.

Activate the Language and Check the Result#

To change the site's language, go to Settings → General → Site Language. The administration interface can use a different language selected in Users → Profile → Language.

Selecting a language in Loco Translate creates its translation files; it does not switch the site's active language.

Check the translated plugin screens, then generate a test invoice and check the invoice email separately. Document language also depends on the language information stored with the document and any WPML integration. Changing the dashboard language alone does not guarantee that every invoice will use that language.

Translations apply to 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 contains JavaScript strings, which require JSON translation files. Loco Translate can generate these when saving, provided the translation contains valid references to the corresponding JavaScript files.

If some editor labels remain untranslated, check that the relevant strings are included in the translation and that Loco Translate generated the required JSON files.

Update Your Translation#

After updating Flexible Invoices, open your custom translation and click Sync to update its source strings. Review new or changed entries, complete their translations and click Save.

Keep a backup of your custom translation files.

Not the solution you are looking for?

Please check other articles or open a support ticket.