Submit a request
Submit a request

Internationalizing and Localizing the Assessment Experience

This article outlines the approach to internationalization of labels and text rendered by the Learnosity APIs and links to references for the available labels for override, showing example markup.
 

Label bundles

When calling LearnosityApp.init() an internationalization bundle of key value pairs can be supplied as labelBundle

Example

Let's look at an example of a label bundle, "loadingInfo". 

"loadingInfo" has the following values: 

Label Name English Content Maximum Character Limit
loadingInfo Loading question. Just a moment please. 200
Table: key-value pair for the "loadingInfo" label bundle
 
When translating label bundles, you supply the label bundle and its translation in the initialization object as in the following code example.
var options = {
    labelBundle: {
        "loadingInfo": "Ładowanie pytania. Chwileczkę proszę...",
        "play": "Grać",
        ...
    },
    ...
};
var questionsApp = LearnosityApp.init(activity, options);

 Source code: supplying a label bundle with its translation in Polish

See the label bundle values

The tables of label bundles can be viewed on reference.learnosity.com, via the links below. See  for more specific instructions.  

Label bundles for assessment

 

Label bundles for authoring

 

Notes

  • Not all areas can be translated. The Flash microphone access request language will be based on the OS language. Only the labels provided above can be changed.
  • The upload process is under development and may result in a number of loading notices to the user.
  • When overriding the labels of longtextV2, users should refer to and update the editor.toolbar labels.
Was this article helpful?
1 out of 2 found this helpful

Did you arrive here by accident? If so, learn more about Learnosity by clicking here.