I18n Internationalisation how to manage multi languages
I18n Internationalisation how to manage multi languages
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
This discussion has been closed.
Answers
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 thei18n
option.Allan
thanks, will use localizedStrings['create'] and so on ...
and locales files ...