Change language of a button inside a cell

Change language of a button inside a cell

WickedvaniaWickedvania Posts: 1Questions: 1Answers: 0

I have a Datatable with a set of two buttons inside every row (please see attached picture). I have created the buttons using this example. What I would like to do is to change the string inside the button.

Here is the code of both buttons:

                            {
                                data: "varPlan",
                                "defaultContent": "<a href='' class='btn btn-default' style='width: 100%'><i>Ver condiciones</i></a>"
                            },
                            {
                                data: null,
                                "defaultContent": "<a href='' class='btn btn-default' style='width: 100%'><i>Ver detalles</i></a>"
                            }

I have tried to data-translate with Angular-translate, but got no luck. Also I have tried to use i18n, but can't figure out the syntax since the example given is different from mine.

Please shed some light in this issue :smile:

This discussion has been closed.