Topic: Translate to french
4mjoncas free asked 5 years ago
Is it possible to translate the Sort Table label ?
a saw this : The language strings of 'First', 'Previous' etc can be optionally changed through the internationalisation options of DataTables; language.paginate.first, language.paginate.previous etc.
Can you show me how to change the language setting ?
4mjoncas free answered 5 years ago
WOW!
That's perfect, I guess I can replace this URL with my own json URL to accommodate all language I want.
I'm new with MDB Is there a place to get this details documentation ?
Thank you for your help.
lemons free commented 5 years ago
Read the offical datatable docs. Instead of "url" you can also use the json lines directly without referring to a json file. https://datatables.net/manual/i18n
Grzegorz Bujański staff commented 5 years ago
Just like Lemon says. Nothing to add :)
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Free
- Premium support: No
- Technology: MDB jQuery
- MDB Version: 4.10.1
- Device: Desktop
- Browser: Chrome
- OS: Windows
- Provided sample code: No
- Provided link: No
Grzegorz Bujański staff commented 5 years ago
Hi, Did you try something like this:
$('#dtBasicExample-1').dataTable( { "language": { "url": "https://cdn.datatables.net/plug-ins/9dcbecd42ad/i18n/French.json" } } );