Topic: Translate to french

4mjoncas free asked 4 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 ?


Grzegorz Bujański staff commented 4 years ago

Hi, Did you try something like this: $('#dtBasicExample-1').dataTable( { "language": { "url": "https://cdn.datatables.net/plug-ins/9dcbecd42ad/i18n/French.json" } } );


4mjoncas free answered 4 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 4 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 4 years ago

Just like Lemon says. Nothing to add :)



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • 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