🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@inlang/github-lint-action

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@inlang/github-lint-action

This action checks for translation issues within your PRs.

latest
npmnpm
Version
0.2.3
Version published
Maintainers
2
Created
Source

🥷 Ninja i18n - GitHub Lint Action

Automate your i18n workflow and ensure that your i18n files are always up to date with the latest changes in your source code.

Features

  • Automated i18n linting for pull requests
  • Detection of new broken inlang projects
  • Comment creation with issue report
  • Link creation to fix issues directly in Fink localization editor

Setup

Make sure you have an inlang project set up in your repository. If you don't have one yet, you can create one here.

Add the following workflow file to your repository in this path .github/workflows/ninja-i18n.yml

name: Ninja i18n action

on:
  pull_request_target:

# explicitly configure permissions, in case your GITHUB_TOKEN workflow permissions are set to read-only in repository settings
permissions: 
  pull-requests: write

jobs:
  ninja-i18n:
    name: Ninja i18n - GitHub Lint Action
    runs-on: ubuntu-latest

    steps:
      - name: Checkout
        id: checkout
        uses: actions/checkout@v4

      - name: Run Ninja i18n
        id: ninja-i18n
        uses: opral/ninja-i18n-action@v0.2.3
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          

Environmental Variables:

NameRequirementDescription
GITHUB_TOKENrequiredUsage: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}, Ninja i18n action uses this in-built GitHub token to make the API calls for interacting with GitHub. It is built into Github Actions and does not need to be manually specified in your secrets store. More Info

Workflow

  • When a pull request is opened or updated, the action will run and check for new i18n issues.
  • If any issues are found, the action will create a comment on the pull request with a link to the Fink localization editor to fix the issues.
  • After the issues are fixed, the action will automatically update the comment on the pull request to reflect the changes.
  • If no issues are found, the action will simply not create any comments.

Keywords

i18n

FAQs

Package last updated on 12 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts