The IResolveVocabLanguage interface
Interface location
D2L.IM.IPSIS.LIS.IResolveVocabLanguage
Implementation
D2L.IM.IPSIS.LIS.RequestAdapters.Vocab.Default.VocabDefaultLanguageResolver
Description
This plug-in is configured for the case when a client sends a generic language code (ex. en or fr) with a request.
Currently, the provided vocabularies only support fully qualified language codes (ex. en-US, en-CA, fr-CA).
This resolver is a plug-in that allows us to specify a default language code to use given generic language code. The resolver is configured by specifying valid XML in the Settings field when managing a plug-in.
The format of the XML must be as follows:
<language>
<en>en-US</en>
<fr>fr-CA</en>
...
</language>
There must be an overall tag (in this case, language) and the child tags represent the matching values. The element name is the generic language code (ex. en) and the element value is the qualified language code (ex. en-US). Please note that the overall tag can be any value (it doesn't have to be language). There needs to be a parent tag that wraps the elements that match the language codes.