Material-table: Translate 'Export as CSV' or 'Export as PDF'

Created on 29 Jul 2020  路  2Comments  路  Source: mbrn/material-table

I'm trying to translate the export button phrase using the Localization feature as showing in the picture but the 'toolbar.exportName' doesn't translate the phrase and there is not an option to translate the pdf's phrase, only de csv's phrase.
localization
localization2

question

Most helpful comment

These are the new localization labels.
Since the new _Export as PDF_ feature it's available the docs wasn't updated.

  localization: {
    addRemoveColumns: "Add or remove columns",
    nRowsSelected: "{0} row(s) selected",
    showColumnsTitle: "Show Columns",
    showColumnsAriaLabel: "Show Columns",
    exportTitle: "Export",
    exportAriaLabel: "Export",
    exportCSVName: "Export as CSV",
    exportPDFName: "Export as PDF",
    searchTooltip: "Search",
    searchPlaceholder: "Search",
    searchAriaLabel: "Search",
    clearSearchAriaLabel: "Clear Search"
  },

All 2 comments

These are the new localization labels.
Since the new _Export as PDF_ feature it's available the docs wasn't updated.

  localization: {
    addRemoveColumns: "Add or remove columns",
    nRowsSelected: "{0} row(s) selected",
    showColumnsTitle: "Show Columns",
    showColumnsAriaLabel: "Show Columns",
    exportTitle: "Export",
    exportAriaLabel: "Export",
    exportCSVName: "Export as CSV",
    exportPDFName: "Export as PDF",
    searchTooltip: "Search",
    searchPlaceholder: "Search",
    searchAriaLabel: "Search",
    clearSearchAriaLabel: "Clear Search"
  },

It worked. Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ModPhoenix picture ModPhoenix  路  3Comments

Likurg2010 picture Likurg2010  路  3Comments

slevy85 picture slevy85  路  3Comments

balibou picture balibou  路  3Comments

jlgreene2 picture jlgreene2  路  3Comments