DataTables / DataTables/Plugins
Input pagination - Localization
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 1.7k
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
It is necessary to translate the label "of" used here:
$ (an) .children (paginateOfClassName + '.') .html ('of' + iPages);
I do not know very well the structure, but one option could be to place a new option in
"oPaginate": { ... "sOf", " of " }
Other label: nPage.innerHTML = 'Page ';
Thanks,
NS
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate the pagination code containing the paginateOfClassName expression and the nPage.innerHTML assignment, then read how oPaginate options are defined and consumed. Confirm the “of” and “Page” labels can be localized independently and verify that pagination displays the configured text.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, internationalization
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100