config.label_bundle.dateTimeLocale - Initialization - Author API

Author API Initialization


Automatically localizes dates and times.

You would want to use this to perform fine grained customization of the date and time display format.


// Set the date and time language format to French
var initializationOptions = {
    "config": {
        "label_bundle": {
            "dateTimeLocale": "fr"


Attribute path config.label_bundle.dateTimeLocale

Default ""

Type string

This value is processed using Moment.js.

The default is an empty string, which Moment.js interprets as "en-US".

To set the language to French, for example, you can pass in "fr".

To set the region and language to Canadian French, for example, you can pass in "fr-CA".

Was this article helpful?

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