Is possible to translate columns title?
See original GitHub issueIs there a way to translate title strings from table headers ?
I’m using tap-i18n, I have also tried to call a function like:
tap = function (str) {
return (Meteor.isClient) ? TAPi18n.__(str) : " ";
}
... and then use
{ data: "someField", title: tap('name') }
but nothing is translated, it returns “name”.
Thanks
Issue Analytics
- State:
- Created 9 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Translate a table column name - Kofax Product Documentation
Translate a table column name · On the Project tab, in the Configuration group, select Project Settings · Click the Tables tab to...
Read more >Translate report region column titles - Oracle Communities
Does anyone know if it's possible to translate the titles of the columns of a report region.
Read more >Translate Board Column Headers - Atlassian Community
Unfortunately, the column names are not currently available for translate. Only issue type, status, resolution and priorities are available for translate. https ...
Read more >SharePoint: Properly translate your list column names
Don't pluralize it, unless the columns allow multiple selections; Make it as clear as possible, even if the name becomes big. Why all...
Read more >Pandas Change Column Names – 3 Methods
The first method that we suggest is using Pandas Rename. Rename takes a dict with a key of your old column name and...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
See #115 Recent versions of aldeed:tabular / datatables allow to specify a function for setting the column titles.
The language change is reactive. If you have translations you can switch and columns will be translated.
Word of warning: This currently does not work when you include invisible columns in your table data. The offset is wrong and you get wrong column titles.
It’s ok if using
and setting title of each column as the string you have defined inside i18n.
I haven’t found a direct method, without the need to use Template rendered callback.