Skip to content

Add document translation sample#1544

Merged
hugoabernier merged 3 commits into
pnp:mainfrom
AhmadiRamin:react-command-document-translation
Dec 31, 2025
Merged

Add document translation sample#1544
hugoabernier merged 3 commits into
pnp:mainfrom
AhmadiRamin:react-command-document-translation

Conversation

@AhmadiRamin

Copy link
Copy Markdown
Contributor

Add document translation sample

Provides document translation sample for SharePoint Framework. Users can select one or more documents from a SharePoint document library and translate them into multiple target languages simultaneously with real-time progress tracking.

Q A
Bug fix? no
New feature? no
New sample? yes

What's in this Pull Request?

This PR adds a new SharePoint Framework List View Command Set extension that enables users to translate documents from one language to another using Azure Document Translation Service.

Key Features:

  • Multi-Language Translation: Translate documents to multiple target languages in a single operation
  • Auto-Detect Source Language: Automatically detect the source language or manually specify it
  • Batch Processing: Process multiple documents at once with configurable limits
  • Real-Time Progress Monitoring: Track translation progress with live status updates
  • Wide Format Support: Supports .docx, .xlsx, .pptx, .pdf, .html, .txt, .md, .msg, .odt, .ods, .odp
  • Secure Authentication: Uses Azure AD OAuth 2.0 with On-Behalf-Of flow
  • Comprehensive Error Handling: Per-document failure details and reporting
  • Cost Transparency: Character count tracking for cost monitoring

What's Included:

  • SPFx extension (v1.21.1) with React UI for document selection and language targeting
  • Azure Function backend (.NET 9.0) for integration with Azure Translator Service
  • Complete setup and configuration guides
  • Detailed deployment instructions for SharePoint and Azure

Ramin Ahmadi and others added 2 commits November 12, 2025 15:16
@github-actions

Copy link
Copy Markdown
Contributor

Validation failed!

File: samples/react-command-document-translation/Assets/sample.json

@hugoabernier
hugoabernier merged commit a1aec6e into pnp:main Dec 31, 2025
2 of 3 checks passed
@hugoabernier

Copy link
Copy Markdown
Collaborator

Thank you @AhmadiRamin for your sample! Highly appreciated!

We'd love to have your sample featured in one of our future community calls.

If haven't done so yet, and you'd be interested on showing this great sample in a public community call, please fill in following form and we'll get you scheduled - aka.ms/community/request/demo

Thank you for sharing your sample with others - you rock! 👏🥇👩‍💻

@github-actions

Copy link
Copy Markdown
Contributor

Validation failed!

File: samples/react-command-document-translation/Assets/sample.json

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.

2 participants