I18n Internationalisation how to manage multi languages

I18n Internationalisation how to manage multi languages

idealcomsidealcoms Posts: 10Questions: 5Answers: 1

I read the I18n topic. The example show how to set the buttons, title, submit for one language (French)

i18n: {
create: {
button: "Nouveau",
title: "Créer nouvelle entrée",
submit: "Créer"
},

but how is it related to a multi languages system in which the table language is dynamically set :

      var langUrl = "//cdn.datatables.net/plug-ins/be7019ee387/i18n/French.json";
      if (locale === "en") { langUrl = "//cdn.datatables.net/plug-ins/be7019ee387/i18n/English.json"; }

       var table = $('#groups').DataTable( {                  
          language: { url: langUrl },
      ...

How the I18n locale is et in the editor ???

thanks for your feedback

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Answer ✓

    At the moment there is no option to load the i18n language information via Ajax in Editor. You would need to make your own $.ajax call to get the language information and then pass it in to the Editor constructor using the i18n option.

    Allan

  • idealcomsidealcoms Posts: 10Questions: 5Answers: 1

    thanks, will use localizedStrings['create'] and so on ...
    and locales files ...

This discussion has been closed.