Is it possible to load a translation file into editor like with DataTables?

Is it possible to load a translation file into editor like with DataTables?

informaxinformax Posts: 4Questions: 2Answers: 0

Hello. Is it possible to load a translation file into editor?

In DataTables you can load a file with translations.

Answers

  • allanallan Posts: 63,522Questions: 1Answers: 10,473 Site admin

    As in have Editor Ajax load a translation? I'm afraid that isn't possible at the moment - what you would need to do is se $.ajax() to load the JSON translation file and then assign it to i18n. Your translation file could also contain the DataTables translation so you don't need to also Ajax load that.

    I am working on a better option - the i18n() method that was introduced relatively recently is a step in that direction.

    Allan

This discussion has been closed.