Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lengthMenu add possibility of translation of the values #311

Open
ThibaultPelloquin opened this issue Jan 2, 2025 · 1 comment
Open

Comments

@ThibaultPelloquin
Copy link

ThibaultPelloquin commented Jan 2, 2025

Hello,

In the plugin, when using internationalization, almost everything is translatable in the JSON file, except for the numbers related to the lengthMenu.

As described here: https://datatables.net/reference/option/lengthMenu

Would it be possible to add a key like this after the "lengthMenu" key:

{
  "lengthMenuChoices": {
       "_": "%d",
       "-1": "All"
   }
}

which could be used if defined if the option lengthMenu has no double array or value: key defined.

Thank you so much for your answer ^^,

@AllanJard
Copy link
Contributor

I think that is an extremely good idea. I'll look into that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants