From 0f3e79117ce5b3dc5d151dd17ac673bca73b8d7c Mon Sep 17 00:00:00 2001 From: DAnn2012 Date: Tue, 30 Apr 2024 21:29:13 +0200 Subject: [PATCH 1/3] Fix: The Reports Dashboard Widget was not displayed translated (#7372) --- src/Views/Admin/DashboardWidgets/Reports.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Views/Admin/DashboardWidgets/Reports.php b/src/Views/Admin/DashboardWidgets/Reports.php index a9f3a29a7a..4cf217e738 100644 --- a/src/Views/Admin/DashboardWidgets/Reports.php +++ b/src/Views/Admin/DashboardWidgets/Reports.php @@ -71,6 +71,7 @@ public function enqueue_scripts($base) 'assetsUrl' => GIVE_PLUGIN_URL . 'assets/dist', ] ); + wp_set_script_translations( 'give-admin-reports-widget-js', 'give' ); } public function get_all_time_start() From 3ebee403e67c44255d608d1a1c883c93d77fec07 Mon Sep 17 00:00:00 2001 From: DAnn2012 Date: Tue, 30 Apr 2024 21:29:25 +0200 Subject: [PATCH 2/3] Fix: The "Welcome Banner" was not displayed translated (#7371) --- src/Promotions/WelcomeBanner/WelcomeBanner.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Promotions/WelcomeBanner/WelcomeBanner.php b/src/Promotions/WelcomeBanner/WelcomeBanner.php index 428ae6a4f2..c1cc6d3898 100644 --- a/src/Promotions/WelcomeBanner/WelcomeBanner.php +++ b/src/Promotions/WelcomeBanner/WelcomeBanner.php @@ -48,6 +48,8 @@ public function loadScripts(): void ] ); + wp_set_script_translations( 'givewp-welcome-banner', 'give' ); + wp_enqueue_style('givewp-design-system-foundation'); wp_enqueue_style('givewp-admin-fonts'); } From b97e5fcef0d7429c33f3370437942791ad687eaa Mon Sep 17 00:00:00 2001 From: DAnn2012 Date: Tue, 30 Apr 2024 21:29:34 +0200 Subject: [PATCH 3/3] Fix: The "Donor Dashboard" block was not displayed translated (#7370) --- src/DonorDashboards/Block.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/DonorDashboards/Block.php b/src/DonorDashboards/Block.php index 371dc97bc6..8c01c1f84e 100644 --- a/src/DonorDashboards/Block.php +++ b/src/DonorDashboards/Block.php @@ -90,5 +90,6 @@ public function loadEditorAssets() GIVE_VERSION, true ); + wp_set_script_translations( 'give-donor-dashboards-block', 'give' ); } }