Add missing translation.

This commit is contained in:
Jeff Stieler 2019-05-14 11:25:46 -06:00
parent 93085fe268
commit a9195efb16
2 changed files with 3 additions and 3 deletions

View File

@ -106,7 +106,7 @@ import { addFilter } from '@wordpress/hooks';
addFilter( 'woocommerce_admin_reports_list', 'my-namespace', ( reports ) => {
reports.push( {
report: 'example',
title: 'Example',
title: __( 'Example', 'my-textdomain' ),
component: ExampleReportComponent,
} );
@ -120,7 +120,7 @@ Register the report page with the controller:
wc_admin_register_page(
array(
'id' => 'woocommerce-analytics-example',
'title' => 'Example',
'title' => __( 'Example', 'my-textdomain' ),
'parent' => 'woocommerce-analytics',
'path' => '/analytics/example',
)

View File

@ -80,7 +80,7 @@ class WC_Admin_Analytics_Dashboard {
wc_admin_register_page(
array(
'id' => 'woocommerce-dashboard',
'title' => 'Dashboard',
'title' => __( 'Dashboard', 'woocommerce-admin' ),
'parent' => 'woocommerce',
'path' => self::MENU_SLUG,
)