Internationalisation optimize propositions

Internationalisation optimize propositions

tstartstar Posts: 36Questions: 0Answers: 0
edited August 2015 in Free community support

I have a proposal to optimize work with language files.

  1. Store the language files in JavaScript format and rename them in the name of the locale like "dataTables-en.js". This will help to automate the adding language files.

  2. Make the language files set default language setting automatically when you add them. Here is an example of such a file:

$.extend($.fn.dataTable.defaults, {
    language: {
        search: "Search:"
    }
})

Of course, it is necessary to take into account the dependencies for AMD.

I converted to this format, some important files and now I am very happy. It is very convenient to use.

Replies

This discussion has been closed.