Internationalization for Datatable header.

Internationalization for Datatable header.

thaneswarthaneswar Posts: 1Questions: 1Answers: 0
edited March 2019 in Free community support

Hi ,
I am using angular datatable, i have initialized the columns in ngOnInIt() as shown in the code:

ngOnInit(){

this.model.columns = [{
  title: 'xyz',  // **Need to use the internationalization for the column title ** 
  data: 'XYZ',
  render: function (data, type, row, meta) {
        return data === null ? '-' : data
      }
}],

}

I want to use the internationalization for the column title, But i could not find the proper solution.

Can you please help me on this.

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    What internationalisation library (if any) are you using? You'd need to consult its API and replace your xyz string with that.

    Allan

This discussion has been closed.