Skip to content

Conversation

desrosj
Copy link
Member

@desrosj desrosj commented Jul 1, 2025

Proposed changes

Makes adjustments to deprecate the old-style translation workflow and account for newfold-labs/workflows#58.

Type of Change

Production

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Dependency update
  • Refactoring / housekeeping (changes to files not directly related to functionality)

Development

  • Tests
  • Dependency update
  • Environment update / refactoring
  • Documentation Update

Video

Checklist

  • I have read the CONTRIBUTING doc
  • I have viewed my change in a web-browser
  • Linting and tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Further comments

@desrosj desrosj self-assigned this Jul 1, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Updates the translation workflow by removing the legacy WP i18n script, introducing pre- and post-i18n Composer tasks, and switching the GitHub action to a consolidated translations workflow.

  • Refactors the i18n npm script to use Composer only
  • Adds i18n-ci-pre and i18n-ci-post script groups in composer.json
  • Points the auto-translate workflow at the new reusable-translations action

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
package.json Removed wpi18n addtextdomain from the i18n script
composer.json Added i18n-ci-pre and i18n-ci-post script arrays
.github/workflows/auto-translate.yml Updated reusable workflow to reusable-translations
Comments suppressed due to low confidence (3)

package.json:83

  • Update project documentation and remove the now-unused wpi18n dependency or script references to keep setup instructions accurate.
        "i18n": "composer run i18n",

composer.json:62

  • Add entries for i18n-ci-pre and i18n-ci-post in the scripts-descriptions section so CLI help output remains clear and complete.
    "i18n-ci-pre": [

.github/workflows/auto-translate.yml:23

  • Verify that the new reusable-translations.yml action matches the inputs/outputs of the previous workflow, and update any documentation or mappings accordingly.
    uses: newfold-labs/workflows/.github/workflows/reusable-translations.yml@main

@desrosj desrosj merged commit 032403c into main Jul 1, 2025
16 of 20 checks passed
@desrosj desrosj deleted the deprecate-old-translation-workflow branch July 1, 2025 18:08
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