From 742e3e85e935f47cc07afcdaf079ea067c347db5 Mon Sep 17 00:00:00 2001 From: Jan Jakes Date: Thu, 20 Oct 2022 14:10:14 +0200 Subject: [PATCH] Load translations for automation scripts using wp_set_script_translations() [MAILPOET-4611] --- mailpoet/lib/Form/AssetsController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mailpoet/lib/Form/AssetsController.php b/mailpoet/lib/Form/AssetsController.php index 4d4fa942db..5875eee6d3 100644 --- a/mailpoet/lib/Form/AssetsController.php +++ b/mailpoet/lib/Form/AssetsController.php @@ -136,6 +136,7 @@ EOL; Env::$version, true ); + $this->wp->wpSetScriptTranslations('automation', 'mailpoet'); } public function setupAutomationEditorDependencies(): void { @@ -146,6 +147,7 @@ EOL; Env::$version, true ); + $this->wp->wpSetScriptTranslations('automation_editor', 'mailpoet'); } public function setupAutomationTemplatesDependencies(): void { @@ -156,5 +158,6 @@ EOL; Env::$version, true ); + $this->wp->wpSetScriptTranslations('automation_templates', 'mailpoet'); } }