Skip to content

Overview

You can create Crowdin apps that extend the functionality of Crowdin by adding new modules to the Crowdin UI. Modules are displayed in the Crowdin UI and can be used to add new features or modify existing ones.

Each module is declared under its configuration key. SDK links to the module’s page in these docs; Crowdin links to the module’s manifest reference in the Crowdin developer docs.

ModuleConfig keyDescriptionDocs
Profile MenuprofileResourcesMenuPage in the user profile menu.Crowdin
Profile Settings MenuprofileSettingsMenuTab in the user account settings.Crowdin
Organization MenuorganizationMenuPage in the organization menu.Crowdin
Organization Settings MenuorganizationSettingsMenuTab in the organization settings.Crowdin
Project MenuprojectMenuTab in the project menu.Crowdin
Project Menu CrowdsourceprojectMenuCrowdsourceTab on the public page of a crowdsourced project.Crowdin
Project ToolsprojectToolsPage in the project’s Tools section.Crowdin
Project ReportsprojectReportsPage in the project’s Reports section.Crowdin
Group ReportsgroupReportsPage in the Reports section of a project group.Crowdin
Context MenucontextMenuContext menu item that opens an app module or a URL.SDK · Crowdin
ModalmodalModal dialog opened from a context menu item.SDK · Crowdin
ChatchatChat dialog in the right panel, available across the UI.SDK · Crowdin
AnnouncementannouncementOrganization-wide message in the header alert or on a glossary page.SDK · Crowdin
ModuleConfig keyDescriptionDocs
Editor Right PaneleditorRightPanelPanel in the Crowdin Editor.Crowdin
Editor ButtoneditorButtonEditor button that opens a panel or modal, or sends an event.SDK · Crowdin
Custom MTcustomMTMachine translation engine not supported by Crowdin out of the box.SDK · Crowdin
Custom SpellcheckercustomSpellcheckerSpellchecker with custom rules.SDK · Crowdin
External QA CheckexternalQaCheckValidates translations against your own rules.SDK · Crowdin
Advisor InspectoradvisorInspectorCheck that reports insights to Crowdin Advisor.SDK
ModuleConfig keyDescriptionDocs
Custom File FormatcustomFileFormatParses and builds files in a format Crowdin doesn’t support.SDK · Crowdin
File Pre-ImportfilePreImportModifies files before import.SDK · Crowdin
File Post-ImportfilePostImportModifies parsed strings after import.SDK · Crowdin
File Pre-ExportfilePreExportModifies strings before export.SDK · Crowdin
File Post-ExportfilePostExportModifies files after export.SDK · Crowdin
Translation AlignmentfileTranslationsAlignmentExportAligns translations with source strings after export.SDK · Crowdin
ModuleConfig keyDescriptionDocs
AI ProvideraiProviderConnects AI models to Crowdin.SDK · Crowdin
AI Prompt ProvideraiPromptProviderGenerates prompts for custom and built-in AI providers.SDK · Crowdin
AI Request ProcessorsaiRequestPreCompile, aiRequestPostCompile, aiRequestPreParse, aiRequestPostParseModify AI request data at each stage of the request.SDK · Crowdin
ModuleConfig keyDescriptionDocs
Project IntegrationprojectIntegrationSyncs files between a Crowdin project and an external service.SDK · Crowdin
Workflow Step TypeworkflowStepTypeCustom step type in Crowdin Enterprise workflows.SDK · Crowdin
Automation ActionautomationActionAction for Crowdin automations, with JSON Schema input and output.—
WebhookwebhooksSubscribes to project and organization events.SDK · Crowdin
APIapiEndpoints for calling the app from outside Crowdin.SDK · Crowdin
Auth GuardauthGuardExtra authentication checks during user login.SDK · Crowdin

Example of the Profile Menu module:

index.js
import crowdinModule from '@crowdin/app-project-module';
const configuration = {
baseUrl: 'https://123.ngrok.io',
clientId: 'clientId',
clientSecret: 'clientSecret',
name: 'Sample App',
identifier: 'sample-app',
description: 'Sample App description',
dbFolder: import.meta.dirname,
imagePath: import.meta.dirname + '/logo.png',
profileResourcesMenu: [
{
fileName: 'setup.html',
uiPath: import.meta.dirname + '/public',
environments: 'crowdin-enterprise'
}
]
};
crowdinModule.createApp(configuration);
ParameterDescriptionExample
imagePathPath to the module logo (can be different image than the app logo).import.meta.dirname + '/reports.png'
fileNameOptional, only needed if file is not index.html.'reports.html'
uiPathFolder where UI of the module is located (js, html, css files).import.meta.dirname + '/public'
environmentsEnvironment where the module should render.crowdin / enterprise
imageUrlAlternative to imagePath to specify if logo is hosted remotely.'https://test.com/reports.png'

Each module can work as an extension to other modules, being something like a configuration UI for them:

index.js
import crowdinModule from '@crowdin/app-project-module';
const app = crowdinModule.express();
const configuration = {
baseUrl: 'https://123.ngrok.io',
clientId: 'clientId',
clientSecret: 'clientSecret',
name: 'Sample App',
identifier: 'sample-app',
description: 'Sample App description',
dbFolder: import.meta.dirname,
imagePath: import.meta.dirname + '/logo.png',
profileResourcesMenu: [
{
fileName: 'setup.html',
uiPath: import.meta.dirname + '/public',
environments: 'crowdin'
}
],
customMT: [
{
translate
}
],
onUninstall: cleanup
};
const crowdinApp = crowdinModule.addCrowdinEndpoints(app, configuration);
const metadataStore = crowdinModule.metadataStore;
async function cleanup({ organization, allCredentials }) {
// Cleanup logic
await crowdinApp.deleteMetadata(organization);
}
async function translate({ client, context, projectId, source, target, strings }) {
const organization = context.jwtPayload.domain || context.jwtPayload.context.organization_id;
const metadata = await metadataStore.getMetadata(organization);
// do translation based on metadata
const translations = ['hello', 'world'];
return translations;
}
// extra endpoints for resources UI
app.post('/metadata', async (req, res) => {
// Always specify moduleKey to restrict access to authorized modules
const { context } = await crowdinApp.establishCrowdinConnection({
jwtToken: req.query.jwtToken,
moduleKey: ['sample-app-profile-resources'] // Only this module can access
});
const id = `${context.jwtPayload.context.organization_id}_${context.jwtPayload.context.project_id}`;
const organization = context.jwtPayload.domain || context.jwtPayload.context.organization_id;
const metadata = await metadataStore.getMetadata(organization);
await crowdinApp.saveMetadata({ id, metadata: req.body, crowdinId: organization });
res.status(204).end();
});
app.get('/metadata', async (req, res) => {
// Always specify moduleKey to restrict access to authorized modules
const { context } = await crowdinApp.establishCrowdinConnection({
jwtToken: req.query.jwtToken,
moduleKey: ['sample-app-profile-resources'] // Only this module can access
});
const id = `${context.jwtPayload.context.organization_id}_${context.jwtPayload.context.project_id}`;
const metadata = await metadataStore.getMetadata(id) || {};
res.status(200).send(metadata);
});
app.listen(3000, () => console.log('Crowdin app started'));

Read more about App Metadata.