GithubHelp home page GithubHelp logo

benjaminjonard / crowdin-translations-progress-action Goto Github PK

View Code? Open in Web Editor NEW
2.0 4.0 1.0 1002 KB

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

License: MIT License

TypeScript 100.00%
crowdin action github-actions translations

crowdin-translations-progress-action's Introduction

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.
<!-- CROWDIN-TRANSLATIONS-PROGRESS-ACTION-START -->
<!-- CROWDIN-TRANSLATIONS-PROGRESS-ACTION-END -->
  1. Add a new workflow file .github/workflows/crowdin-translations-progress.yml
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/[email protected]
        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

Licensing

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

crowdin-translations-progress-action's People

Contributors

benjaminjonard avatar renovate-bot avatar renovate[bot] avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

zhangfeng-ola

crowdin-translations-progress-action's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Awaiting Schedule

These updates are awaiting their schedule. Click on a checkbox to get an update now.

  • Update all non-major dependencies (@crowdin/crowdin-api-client, @types/node, @typescript-eslint/parser)

Detected dependencies

npm
package.json
  • @actions/core ^1.10.0
  • @actions/exec ^1.1.1
  • @actions/github ^5.1.1
  • @crowdin/crowdin-api-client ^1.22.1
  • axios ^1.3.5
  • dotenv ^16.0.3
  • @types/node ^18.15.11
  • @typescript-eslint/parser ^5.58.0
  • @vercel/ncc ^0.36.1
  • typescript ^5.0.4

  • Check this box to trigger a request for Renovate to run again on this repository

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

npm
package.json
  • @actions/core ^1.10.0
  • @actions/exec ^1.1.1
  • @actions/github ^6.0.0
  • @crowdin/crowdin-api-client ^1.22.1
  • axios ^1.3.5
  • dotenv ^16.0.3
  • @types/node ^20.0.0
  • @typescript-eslint/parser ^7.0.0
  • @vercel/ncc ^0.38.0
  • typescript ^5.0.4

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.