An open API service indexing awesome lists of open source software.

https://github.com/benjaminjonard/crowdin-translations-progress-action

This GitHub action will add a table containing Crowdin languages translation progress in a .md file
https://github.com/benjaminjonard/crowdin-translations-progress-action

action crowdin github-actions translations

Last synced: about 2 months ago
JSON representation

This GitHub action will add a table containing Crowdin languages translation progress in a .md file

Awesome Lists containing this project

README

          

This GitHub action will add a table containing Crowdin translations progress in a .md file

### Usage

1. Add the following lines in your .md file. the progress table will be added between those 2 lines.
```

```

2. Add a new workflow file `.github/workflows/crowdin-translations-progress.yml`

```yaml
name: Crowdin translations progress
on:
push:
branches: [ main ]
schedule:
- cron: "0 */12 * * *"
workflow_dispatch:

jobs:
crowdin-translations-progress:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Generate Crowdin translations progress markdown
uses: benjaminjonard/crowdin-translations-progress-action@1.0.7
with:
languages_per_row: 10
minimum_completion_percent: 80
file: README.md
env:
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}

- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
title: Update Crowdin translations progress
body: Update Crowdin translations progress by [Crowdin translations progress](https://github.com/benjaminjonard/crowdin-translations-progress-action) GitHub action
commit-message: Update Crowdin translations progress
branch: crowdin-translations-progress-action
```

## Variables

| Name | Default value | Description |
|------------------------------|---------------|---------------------------------------------------------------------------------|
| `languages_per_row` | 10 | Number of languages displayed on each row |
| `minimum_completion_percent` | 80 | The minimum progress value in % the language must be to be considered available |
| `file` | README.md | The targeted markdown file |

## Example

![crowdin-translations-progress-screenshot](https://user-images.githubusercontent.com/20560781/232151800-2981a8d6-86ef-4cbc-874b-c604ff3cf8e6.png)

## Licensing
crowdin-translations-progress-action is an Open Source software, released under the MIT License.