Skip to content

Make Last-Translator a committer #14

@m-aciek

Description

@m-aciek

Resolving last translator on Transifex while commiting potentially would encourage translators and would make contributions graph closer to truth.

I think of such an algorithm (for first iteration at least):

  • find first updated PO file in git diff,
  • get last translator from this PO file metadata (Last-Translator field),
  • configure git commiter using last translator data [1],
  • commit as before [2].

[1]

- run: git config --local user.email '[email protected]'
name: Run git config --local user.email '…'
- run: git config --local user.name "GitHub Action's update-translation job"

[2]
- run: git commit -m 'Update translation from Transifex' || true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions