Skip to main content

A project resource can be retrieved from the Delivery API to understand the languages that the project supports and which language is the primary language.

Properties

Name Type Format Description
id string   The project identifier, e.g. "movieDb". Found in the project overview screen of the management console.
name string   The friendly name given to the project.
description string   The description text given to a project.
supportedLanguages string […]   An array of all the languages supported by the project.
primaryLanguage string Language code The primary language for the project.

Example

JavaScript
ContensisClient.project.get().then(function(currentProject) {
    console.log(currentProject.name);
    console.log(currentProject.primaryLanguage);
    console.log(currentProject.supportedLanguages);
});

Still need help?

If you still need help after reading this article, don't hesitate to reach out to the Contensis community on Slack or raise a support ticket to get help from our team.
New support request