i18n in an external file

i18n in an external file

zesszess Posts: 9Questions: 4Answers: 0

Hallo Allan,

it is possible to outsource the editor i18n components into an external file?

How I do it with datatables

"language": {
"url": "datatables/plugins/i18n/German.lang"
}

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,853Questions: 1Answers: 10,134 Site admin
    Answer ✓

    Yes, but what you currently need to do is get the language information from your own Ajax call and then pass that into the language option. Editor doesn't have an option to Ajax get the language definition yet. I'm looking into options for how DataTables and Editor could share the same language file to reduce Ajax requests, but that might be v.1.6 or 1.7 before it is available.

    Allan

This discussion has been closed.