diff --git a/assets/js/admin/settings-views-html-settings-tax.js b/assets/js/admin/settings-views-html-settings-tax.js index f02869c2f5a..6ca249260e2 100644 --- a/assets/js/admin/settings-views-html-settings-tax.js +++ b/assets/js/admin/settings-views-html-settings-tax.js @@ -34,18 +34,7 @@ jQuery('.wc_tax_rates .export').click(function() { - var csv_data = "data:application/csv;charset=utf-8,\n"; + var csv_data = 'data:application/csv;charset=utf-8,' + data.strings.csv_data_cols.join(',') + '\n'; jQuery('#rates tr:visible').each(function() { var row = ''; diff --git a/includes/admin/settings/views/html-settings-tax.php b/includes/admin/settings/views/html-settings-tax.php index 8e9b689b0a6..77d598a94f7 100644 --- a/includes/admin/settings/views/html-settings-tax.php +++ b/includes/admin/settings/views/html-settings-tax.php @@ -26,8 +26,20 @@ wp_localize_script( 'wc-settings-tax', 'htmlSettingsTaxLocalizeScript', array( 'page' => $page, 'limit' => $limit, 'strings' => array( - + 'csv_data_cols' => array( + __( 'Country Code', 'woocommerce' ), + __( 'State Code', 'woocommerce' ), + __( 'ZIP/Postcode', 'woocommerce' ), + __( 'City', 'woocommerce' ), + __( 'Rate %', 'woocommerce' ), + __( 'Tax Name', 'woocommerce' ), + __( 'Priority', 'woocommerce' ), + __( 'Compound', 'woocommerce' ), + __( 'Shipping', 'woocommerce' ), + __( 'Tax Class', 'woocommerce' ), + ), ), + ) ); wp_enqueue_script( 'wc-settings-tax' );