Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Diff translations on every PR #2214

Merged
merged 2 commits into from
Jul 13, 2024
Merged

Diff translations on every PR #2214

merged 2 commits into from
Jul 13, 2024

Conversation

qwandor
Copy link
Collaborator

@qwandor qwandor commented Jul 10, 2024

This uses a new mode of i18n-report to summarise the differences in translations as an action on each PR.

@qwandor qwandor force-pushed the diff branch 2 times, most recently from 6071734 to d4e2e5d Compare July 12, 2024 11:31
@qwandor qwandor marked this pull request as ready for review July 12, 2024 11:31
@qwandor qwandor requested review from mgeisler, djmitche and kdarkhan and removed request for djmitche July 12, 2024 11:31
run: git checkout ${{ github.event.pull_request.base.sha }}

- name: Translation diff
run: i18n-report diff old-po/ po/ > $GITHUB_STEP_SUMMARY
Copy link
Collaborator

@kdarkhan kdarkhan Jul 12, 2024

Choose a reason for hiding this comment

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

Just to confirm, in order to see the diff, the users will need to click on the executed job and see the summary from there? It won't be visible from the PR page directly?

There is an existing action which leaves a comment within the PR. Will it be useful if a similar approach is used here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That's correct, it will show up in the action summary. Leaving a comment on the PR sounds like an interesting idea but looks more complicated. Would you like to send another PR to change to doing that, once this one is merged and seems to be working correctly?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Sure, I can take look. Maybe it can be made generic enough such that the same action could be used for both.

@qwandor qwandor merged commit d1b82a8 into main Jul 13, 2024
37 checks passed
@qwandor qwandor deleted the diff branch July 13, 2024 11:26
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