Login Register

dojo multi-lingual support

Hi,

Our application is using dojo and html running on top of apache server.

The html templates of the widgets are static html. We need to have multi-lingual support for the html templates of the widgets which are static htmls. Could you give us some suggesions? Thanks!

Wendy

set djConfig.locale

at the top of your page, prior to loading dojo.js, set djConfig.locale to the appropriate locale in the specified form, e.g. en-us

That will make the stock Dojo widgets (dijit widgets) appear in the native language and use local customs. You will still need to translate the rest of your page, as you would do without Dojo, either with a template engine or by serving up source from different directories.

Hope that helps.