Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Test

on:
pull_request:
push:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
matrix:
# 20 = engines.node minimum, 22 = active LTS
node-version: ['20', '22']

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

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.11.1

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV

- name: Setup pnpm cache
uses: actions/cache@v4
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Build project
run: pnpm run build

- name: Run tests
run: pnpm run test
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Lara Cli automates translation of your i18n files with a single command, preserv

Supports multiple file formats including JSON, PO (gettext), TypeScript, Vue I18n single-file components, Markdown and MDX files, Android XML string resource files, Xcode localization files (.strings, .stringsdict, .xcstrings), and plain text (.txt) files. See [Supported Formats](docs/config/formats.md) for details.

[![Version](https://img.shields.io/badge/version-1.7.1-blue.svg)](https://github.com/translated/lara-cli)
[![Version](https://img.shields.io/badge/version-1.7.2-blue.svg)](https://github.com/translated/lara-cli)

</div>

Expand All @@ -24,7 +24,7 @@ Supports multiple file formats including JSON, PO (gettext), TypeScript, Vue I18

### Requirements

- Node.js v18 or higher
- Node.js 20 or higher

### Install via npm

Expand Down Expand Up @@ -115,7 +115,7 @@ If you want to contribute to Lara CLI or run it from source, follow these steps.

### Requirements

- Node.js v18 or higher
- Node.js 20 or higher
- pnpm v8 or higher

1. **Clone the repository**
Expand Down
11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@translated/lara-cli",
"type": "module",
"version": "1.7.1",
"version": "1.7.2",
"description": "CLI tool for automated i18n file translation using Lara Translate",
"repository": {
"type": "git",
Expand All @@ -11,10 +11,15 @@
"keywords": [
"laratranslate",
"lara",
"localization",
"translation",
"ai",
"translate",
"localization",
"i18n",
"l10n",
"internationalization",
"cli",
"command-line",
"ai",
"translated"
],
"author": {
Expand Down
Loading