HDInterviewOptionsLanguageModule Field |
JavaScript API: Direct
Assembly: api.js Version: 1.0.0.0 (1.0.0.0)
var LanguageModule
Field Value
Type: objectWhen using the Direct JavaScript API, you have the choice of loading language modules either using this property, or on your own (inline in script blocks or by loading them from external scripts). When using the Embedded JavaScript API (with Cloud Services), language modules must be loaded using this property.
To learn more about interview locales and how to add support for locales other than US English, see Browser Language Module.
var HDInterviewOptions = { Locale: "en-US-mycompany", LanguageModule: { "en-US-mycompany": "http://mycompany.com/hdrelated/hdlang-customized.js" } };
In the following, more complex example, a generic German language module is being loaded from one URL, a module with modifications specific to the Swiss locale is loaded from a different URL, and 3rd-party-specific language string customizations are loaded from a third. This might be a stretch.
var HDInterviewOptions = { Locale: "de-CH-mycompany", LanguageModule: { "de": "http://url/to/hdlang-de.js", "de-CH": "http://url/to/hdlang-des.js", "de-CH-mycompany": "http://url/to/hdlang-des-mycompany.js" } };