Skip to content

Conversation

mr-vara
Copy link
Contributor

@mr-vara mr-vara commented Jun 23, 2025

Proposed changes

This PR sets up the repository to use a centralized, reusable GitHub Actions workflow that automates localization file translation using Azure AI Translation (Microsoft Translator).

What’s Included

  • Calls the reusable translation workflow from the central repository.
  • Supports translation of .po and .json files with optional context stripping.
  • Allows configuration of text_domain, defaulting to the repository name if not provided.

Configuration Notes

  • Triggers on push to main and via manual workflow_dispatch.
  • Requires the following secrets:
    • TRANSLATOR_API_KEY (Azure AI Translation)
    • NEWFOLD_ACCESS_TOKEN (for creating pull requests)

This setup helps automate translation updates across repositories using a single, centralized translation logic.

Documentation

AI Translation Workflow Documentation

@mr-vara mr-vara requested a review from a team as a code owner June 23, 2025 08:58
Copy link
Contributor

github-actions bot commented Jun 23, 2025

wpscholar
wpscholar previously approved these changes Jun 23, 2025
desrosj and others added 2 commits July 1, 2025 13:41
This adjusts the new translation workflow to account for proposed changes in newfold-labs/workflows#58 which eliminates the need for the old-style `i18n-update.yml` file.
…tion-workflow

Adjust new translation workflow
@desrosj desrosj requested a review from circlecube July 1, 2025 18:16
@desrosj desrosj merged commit ed4b7c6 into main Jul 1, 2025
8 of 13 checks passed
@desrosj desrosj deleted the PRESS11-157 branch July 1, 2025 18:18
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.

4 participants