Choose your language:
    Update white-label settings
    Parameters
    customI18nMessagesTemplateUrl  null, string  Required

    URL of custom I18n messages. The :locale placeholder represents the current DatoCMS UI locale.

    Returns
    Returns a white_label_settings object.

    Examples

    Example code:
    const SiteClient = require('datocms-client').SiteClient;
    const client = new SiteClient('YOUR-API-TOKEN');
    client.whiteLabelSettings.update({
    customI18nMessagesTemplateUrl: 'https://my-app-messages.netlify.app/:locale/message.json'
    })
    .then((whiteLabelSettings) => {
    console.log(whiteLabelSettings);
    })
    .catch((error) => {
    console.error(error);
    });
    Returned output:
    > node example.js
    {
    "id": "312",
    "customI18nMessagesTemplateUrl": "https://my-app-messages.netlify.app/:locale/message.json"
    }