Skip to content

feat(ai): add support for AI Translate Strings endpoint#625

Merged
andrii-bodnar merged 2 commits intomasterfrom
copilot/add-ai-translate-strings-support
Mar 14, 2026
Merged

feat(ai): add support for AI Translate Strings endpoint#625
andrii-bodnar merged 2 commits intomasterfrom
copilot/add-ai-translate-strings-support

Conversation

Copy link
Contributor

Copilot AI commented Mar 3, 2026

Adds client support for the Crowdin API's AI Translate Strings endpoint, enabling SDK-driven AI-powered string translation.

Changes

  • New method translateAiUserStrings(userId, request) on the Ai class — POST /users/{userId}/ai/translate/strings, following the existing verb-first naming convention (generateAiUser…, listAiUser…, etc.)
  • New types in AiModel namespace:
    • AiTranslateStringsRequestprojectId, languageId, optional stringIds[]
    • AiTranslateStringsAttribute — response shape mirroring the request fields

Usage

const result = await crowdin.ai.translateAiUserStrings(userId, {
    projectId: 123,
    languageId: 'uk',
    stringIds: [1, 2, 3],
});
console.log(result.data.identifier); // async job identifier

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • crowdin.com
    • Triggering command: /usr/bin/curl curl -s REDACTED (dns block)
  • https://api.github.com/
    • Triggering command: /usr/bin/curl curl -s --max-time 5 REDACTED (http block)
  • support.crowdin.com
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)
    • Triggering command: /usr/bin/curl curl -s REDACTED (dns block)
    • Triggering command: /usr/bin/curl curl -v REDACTED (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Add support for AI Translate Strings method</issue_title>
<issue_description>The Crowdin API now includes the AI Translate Strings endpoint in the AI section, allowing users to submit strings for AI-powered translation.

The Crowdin API client libraries should be updated to support this endpoint so developers can trigger AI string translation directly from SDKs.

References:

Comments on the Issue (you are @copilot in this section)


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Co-authored-by: andrii-bodnar <29282228+andrii-bodnar@users.noreply.github.com>
Copilot AI changed the title [WIP] Add support for AI Translate Strings method feat(ai): add support for AI Translate Strings endpoint Mar 3, 2026
@codecov
Copy link

codecov bot commented Mar 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.16%. Comparing base (5bc0726) to head (0e72829).
⚠️ Report is 5 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #625      +/-   ##
==========================================
+ Coverage   90.11%   90.16%   +0.06%     
==========================================
  Files          40       40              
  Lines        2071     2083      +12     
  Branches      243      243              
==========================================
+ Hits         1866     1878      +12     
  Misses         82       82              
  Partials      123      123              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@andrii-bodnar andrii-bodnar reopened this Mar 14, 2026
@andrii-bodnar andrii-bodnar marked this pull request as ready for review March 14, 2026 16:58
@andrii-bodnar andrii-bodnar merged commit 1dd461e into master Mar 14, 2026
20 checks passed
@andrii-bodnar andrii-bodnar deleted the copilot/add-ai-translate-strings-support branch March 14, 2026 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for AI Translate Strings method

2 participants